如何将Bootstrap 3的glyphicons更改为白色?

时间:2013-08-06 01:17:03

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

我的页面中有字形,但它们是黑色的。如何将glyphicons设置为白色?

1 个答案:

答案 0 :(得分:139)

您可以创建自己的.white类并将其添加到glyphicon元素。

.white, .white a {
  color: #fff;
}
<i class="glyphicon glyphicon-home white"></i>