如何在 bootstrap 3.0 中使用字形 [英] How to use glyphicons in bootstrap 3.0
本文介绍了如何在 bootstrap 3.0 中使用字形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在 bootstrap 2.3 中使用过字形,但现在我已经升级到 bootstrap 3.0.现在,我无法使用图标属性.
I have already used glyphicons in bootstrap 2.3 but now I have upgraded to bootstrap 3.0. Now, I am unable to use the icon property.
在 bootstrap 2.3 中,下面的标签有效
In bootstrap 2.3, below tag is working
<i class="icon-search"></i>
在引导程序 3.0 中,它不起作用.
In bootstrap 3.0, it's not working.
推荐答案
图标(字形)现在包含在一个单独的 css 文件中...
The icons (glyphicons) are now contained in a separate css file...
标记已更改为:
<i class="glyphicon glyphicon-search"></i>
或
<span class="glyphicon glyphicon-search"></span>
以下是 Bootstrap 3 的有用更改列表:http://bootply.com/bootstrap-3-migration-指南
Here is a helpful list of changes for Bootstrap 3: http://bootply.com/bootstrap-3-migration-guide
这篇关于如何在 bootstrap 3.0 中使用字形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文