简体   繁体   English

(HTML5和CSS)类问题

[英](HTML5 & CSS) Issue with classes

I don't understand why my class no-support isn't updating the element to be bold and with a red color. 我不明白为什么我的不支持课程没有将元素更新为粗体和红色。 If I type the path 如果我输入路径

$tbody tr .no-support 

it has red color but it's not bold? 它有红色,但不是粗体? Can someone please explain? 有人可以解释一下吗? Here is the code at JSFiddle http://jsfiddle.net/Sm8J8/ 这是JSFiddle http://jsfiddle.net/Sm8J8/上的代码

You should use another font property and !important to rewrite tbody td:first-child color CSS property : 您应该使用另一个font属性和!important来重写tbody td:first-child color CSS属性:

.no-support {
   font-weight: bold;
   color:red !important;
}

Example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM