知识分享由:快连官网
<div>
<span style="font-weight: bold; color: red;">Hello World</span>
</div>
众所周知,行内式最高级的, 如果我们要想使用导入式的来取代这个行内式的最高级,该如何写呢,用!important 如:
.block span{
font-weight: normal !important;
color: #000 !important;
}
这样这个class为block的div使用的css将不再是行内式的,而是我们设置的!important的,不过!important不支持ie6 不过ie6对!important的支持比较特殊,具体的大家可以百度或谷歌下。