What browsers support “!important”?

前端 未结 4 2100
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 17:43

Which browsers support the CSS !important directive, and what are the various quirks amongst the different browsers that do support it?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 18:09

    Excellent browser support.

    It was part of the CSS1 spec and has been around forever, and was always easy enough to implement that browsers appear to have gotten it right on the first try.

    At the very least (from personal experience) IE5.5+, Firefox 1+, Safari 3+, Chrome 1+.

    Pretty much supported by every browser that supports CSS (which is every browser you care about).

提交回复
热议问题