bootstrap 3中没有消息图标

时间:2014-07-11 18:54:46

标签: css twitter-bootstrap twitter-bootstrap-3

我使用Bootstrap v3.1.1(http://getbootstrap.com)并且我想使用列出here的图标中的icon-message- *,但是在bootstrap中没有这样的类。我应该如何使用它们?

我将这些行添加到头部:

  <link href="css/bootstrap.css" rel="stylesheet" />
  <link href="css/bootstrap-theme.min.css" rel="stylesheet" />

这是我想要使用的代码......但是#34; icon-message-new&#34;

没有css类
   <span class="glyphicon icon-message-new"></span>

2 个答案:

答案 0 :(得分:3)

Hers是Bootstrap中的消息图标:

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

我会建议使用Fontawesome http://fontawesome.io/icons/ 而不是Bootstrap的Glyph-icon。 Font awesome有479个图标供免费使用。

答案 1 :(得分:0)

Bootstrap不提供完整的glyphicons。它只包含200个,你引用的那个没有列在bootstrap支持中(参见这些细节的http://getbootstrap.com/components/#glyphicons链接)

要获得所需的完整字形,请从Github获取它们。它甚至会在您链接我们的页面上收听。

https://github.com/marcoceppi/bootstrap-glyphicons