开发者

when to use !important property in css?

Merged with When to use the !important property in CSS [duplicate].

#div p {
    color: red !important;
}
...
#div p {
    color: blue;
}

I understand how !important works, in this case the div will render red because now it has priority (!important). But I can't still figure开发者_运维问答 out an appropriate situation to use it. Does anybody know any example where !important saves the day?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜