考虑:
#div p { color: red !important; } ... #div p { color: blue; }
我明白是怎么!important运作的.在这种情况下,div将呈现红色,因为它现在具有priority(!important).但我仍然无法找到适当的情况来使用它.是否有一个!important节省一天的例子?
!important
html css
css ×1
html ×1