小编Sah*_* ys的帖子

Bootstrap Glyphicons没有以angular2显示

我想在我的angular2应用程序中使用bootstrap glyphicons.我已经使用命令npm install bootstrap安装了bootstrap --save我的代码片段是

 <button *ngIf="pos.name == uname" type="button" class="btn btn-default       btn-sm delete" (click)="DeleteBulletin();">
   <span class="glyphicon glyphicon-trash glyph"></span>  Delete
 </button>
Run Code Online (Sandbox Code Playgroud)

我在我的styleUrls-styleUrls中包含了bootstrap:['node_modules/bootstrap/dist/css/bootstrap.min.css','app/home.component.css']

glyphicon如图所示 - 在此输入图像描述

css web twitter-bootstrap glyphicons angular

19
推荐指数
4
解决办法
4万
查看次数

标签 统计

angular ×1

css ×1

glyphicons ×1

twitter-bootstrap ×1

web ×1