使用多个选项将 !important应用于字体系列



我怎样才能将!important应用于以下系统:

font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif;  

我已经试过了,但不起作用:

font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif !important;

使用通配符 (*) 选择父容器中的子容器:

div * {font-family: "Trebuchet MS" , Verdana, Helvetica, Sans-Serif !important; }

http://jsfiddle.net/4d3K4/50/

代码很好。它会因您赋予属性的元素而异。最好使用特定的选择器,例如类:

http://jsfiddle.net/4d3K4/

最新更新