如何在bootstrap 3.0中使用glyphicons [英] How to use glyphicons in bootstrap 3.0

查看:103
本文介绍了如何在bootstrap 3.0中使用glyphicons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在引导2.3中使用了glyphicons,但现在我已经升级到bootstrap 3.0。



在bootstrap 2.3中,以下标记正在工作

 < i class =icon-search>< / i> 

在bootstrap 3.0中,它不工作。

解决方案

图标(glyphicons)现在包含在单独的css文件中.. 。 / p>

标记已更改为:

 < i class = glyphicon glyphicon-search>< / i> 

 < span class =glyphicon glyphicon-search>< / span> 

这里是一个有用的Bootstrap 3的更改列表: http://bootply.com/bootstrap-3-migration-guide


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.

In bootstrap 2.3, below tag is working

<i class="icon-search"></i>

In bootstrap 3.0, it's not working.

解决方案

The icons (glyphicons) are now contained in a separate css file...

The markup has changed to:

<i class="glyphicon glyphicon-search"></i>

or

<span class="glyphicon glyphicon-search"></span>

Here is a helpful list of changes for Bootstrap 3: http://bootply.com/bootstrap-3-migration-guide

这篇关于如何在bootstrap 3.0中使用glyphicons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆