Is there anything more important than !important in css?
It seems like my wordpress theme is adding a font color by default with !important condition and it appears as inline style. It targets not exactly what I need, so is there anything I can do about it? I already tried !important !i开发者_StackOverflow中文版mportant :)
The only thing that could override an inline style with !important
is a child element's style:
<div style='color: red ! important'>
<span style='color: green'>This is green.</span>
</div>
you can override inline html style with:
div[style] { color: red !important; }
精彩评论