!important用于将当前css代码优先级提升为最高,这个优先级比行内样式更高
但是!important在ie6这种垃圾浏览器下会出现小bug
.testClass{ color:blue !important;color:red;}这种情况下,实际的color是red
原标题:!important的理解
关键词: