【发布时间】:2011-06-09 03:17:16
【问题描述】:
为什么人们在他们的 CSS 属性声明的末尾添加 !important,这对他们有什么作用?
例如,见过这个吗?:
div{
min-height:100px;
height:auto !important;
height:100px;
}
【问题讨论】:
-
w3.org/TR/CSS2/cascade.html#important-rules 但我确定这是一个骗局
-
...你不能用谷歌搜索这个?!
标签: css attributes properties