Bootstrap 没有显示所有字形
Bootstrap doesn't show all glyphicon
我对 bootstrap 字形有一些问题。
目前我在我的项目中使用了很多 glyphocon,但我不能全部使用它们。
我会试着更好地解释自己。
<span class="glyphicon glyphicon-th-large text-primary"></span>
这在我的网站上运行良好,但是:
<span class="glyphicon glyphicon-sunglasses text-primary"></span>
这个不是。
我尝试下载一个干净的 bootstrap 并且我只是获取了字体文件夹并替换了我项目中的文件。但是什么都没有改变。
我对一些随机字形有这个问题,但不是所有的。
我真的不知道为什么:/
P.s。我已经尝试过这个:Bootstrap 3 unable to display glyphicon properly
这个字形是新的,所以您需要新字体。但是您还需要添加正确的 class 。只是更改字体文件不会添加它。替换您的 bootstrap.css
文件或将其添加到现有文件中:
.glyphicon-sunglasses:before {
content: "\e240";
}
我对 bootstrap 字形有一些问题。
目前我在我的项目中使用了很多 glyphocon,但我不能全部使用它们。
我会试着更好地解释自己。
<span class="glyphicon glyphicon-th-large text-primary"></span>
这在我的网站上运行良好,但是:
<span class="glyphicon glyphicon-sunglasses text-primary"></span>
这个不是。
我尝试下载一个干净的 bootstrap 并且我只是获取了字体文件夹并替换了我项目中的文件。但是什么都没有改变。
我对一些随机字形有这个问题,但不是所有的。
我真的不知道为什么:/
P.s。我已经尝试过这个:Bootstrap 3 unable to display glyphicon properly
这个字形是新的,所以您需要新字体。但是您还需要添加正确的 class 。只是更改字体文件不会添加它。替换您的 bootstrap.css
文件或将其添加到现有文件中:
.glyphicon-sunglasses:before {
content: "\e240";
}