css中!important的作用
2013-05-05 11:13
288 查看
看了下相关文章,!important是用来定义某个样式的优先级设置到无限高,因为这个关键字不能在IE上使用,而可以在其他的浏览器中被识别,所以他可以用来区分要在不同浏览器中区分对待的样式。
用法:
{ 某规则 !important}
比如,我们有个文本规则,在IE和非IE中字体和weight设置为不同,则可以用下面方式轻松解决。
用法:
{ 某规则 !important}
比如,我们有个文本规则,在IE和非IE中字体和weight设置为不同,则可以用下面方式轻松解决。
.text { font-size:16 pixels; font-size:20 pixels !important; font-family:Helvetica; font-weight:bold; font-weight:italic !important; }
相关文章推荐
- CSS中!important的作用
- css中!important的作用
- CSS中!important的作用
- CSS !important作用
- CSS !important的作用
- CSS中!important的作用
- css中!important的作用
- css中!important的作用
- css中!important的作用
- css中!important的作用
- !Important:CSS中!important的作用用于Ie6.0 与Ie7.0、firefox
- css中!important的作用
- css中!important的作用
- !Important:CSS中!important的作用用于Ie6.0 与Ie7.0、firefox
- css中!important的作用(IE6 IE7 FF)
- CSS中!important的作用
- important在css中的作用
- css中!important的作用
- css中!important的作用
- CSS中!important的作用(转)