如何在Bootstrap 4和angular2中使用Glyphicons? [英] how to use Glyphicons in bootstrap 4 and angular2?
问题描述
我正在做一个带有angular-cli和bootstrap4的应用程序,但是当我对Glyphicons进行一些引用时,这些图标没有出现.例如,当我添加以下代码时:
I am doing an app with angular-cli and bootstrap4, but when I do some references to Glyphicons, the icons don´t appear. For example, when I add the following code:
<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>
我在我的有角项目中使用以下方法进行了引导安装:
I did the bootstrap installation in my angular project with:
$ npm install --save bootstrap@4.0.0-alpha.6
我应该采取任何额外的步骤来使Glyphicons处于引导状态?我是否应该安装另一个专门针对Glyphicons的npm软件包?
I should make any extra step to have the Glyphicons in bootstrap? Do I should install another npm package specific for Glyphicons?
推荐答案
Bootstrap 4中现在没有Glyphicons,因此您将使用另一个图标包(例如FontAwesome)或单独安装Glyphicons.
There are no Glyphicons now in Bootstrap 4 so you'd use another icon package such as FontAwesome or installed the Glyphicons separately.
这篇关于如何在Bootstrap 4和angular2中使用Glyphicons?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!