CSS 如何将 Bootstrap 3 的字形更改为白色?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18070322/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 23:48:55 来源:igfitidea点击:
How do I change Bootstrap 3's glyphicons to white?
提问by user2654833
I've got the glyphicons in my page, but they are black. How do I set the glyphicons to white?
我的页面中有字形,但它们是黑色的。如何将字形设置为白色?
回答by dodgerogers747
You can just create your own .white
class and add it to the glyphicon element.
您可以创建自己的.white
类并将其添加到 glyphicon 元素中。
.white, .white a {
color: #fff;
}
<i class="glyphicon glyphicon-home white"></i>