What browsers support “!important”?

前端 未结 4 2099
被撕碎了的回忆
被撕碎了的回忆 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:12

    Any browser which supports CSS1+ - ie, any browser that supports CSS - even IE. Even if the CSS implementations are not fully standards-compliant, !important is a core CSS feature.

    To elaborate, IIRC, IE5+, all Firefox, most Netscape, Opera, Safari, Chrome.

提交回复
热议问题