twitter-bootstrap 如何实现标签的文本静音效果
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22966301/
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
How to achieve a text-muted effect for a label
提问by Eugene Goldberg
I have the following label:
我有以下标签:
<label for="name" class="control-label"><h5 class="text-muted">Name</h5></label>.
I would like to have a text-muted effect for the label text, but my markup above does not accomplish that. What is the right way of doing this?
我想为标签文本设置文本静音效果,但我上面的标记并没有做到这一点。这样做的正确方法是什么?
回答by knitevision
I am sorry to ask, but what is your CSS of the .class-muted?
Didn't you forget to write the code to the css file?
不好意思问一下,你的CSS是.class-muted什么?你不是忘记把代码写到css文件了吗?
Here's the working fiddle http://jsfiddle.net/2Q2Rz/1/
这是工作小提琴 http://jsfiddle.net/2Q2Rz/1/
Update
更新
If you are using Twitter Bootstrap 2.3.2 or older, there's no .text-mutedclass, it is .mutedaccording to the documentation
如果您使用的是 Twitter Bootstrap 2.3.2 或更早版本,则没有.text-muted类,.muted根据文档
The .text-mutedclass appears only in Twitter Bootstrap 3
该.text-muted班只出现在Twitter的引导3

