Why isn't my !important attribute working in Google Chrome?

后端 未结 2 1446
不知归路
不知归路 2021-01-13 08:49

I have two CSS files in my web app: reset.css and screen.css. They appear in that order in the html (reset then screen).

In the reset.css, the following style defin

相关标签:
2条回答
  • 2021-01-13 09:20

    It is a Firebug Lite bug. Firebug Lite is summing up the specificity value of each selector defined in the rule (and not only the matched ones like the CSS specification says), so it is resulting in a overestimated value.

    I just filled an issue report for it. Please "star" (subscribe) the issue if you want to receive email updates about our progress with this particular problem:

    http://code.google.com/p/fbug/issues/detail?id=3262

    Also, next time, for Firebug / Firebug Lite issues, try using our discussion list or our bug tracking. Otherwise we may not be aware of the problem.

    Thanks for the detailed report by the way!

    0 讨论(0)
  • 2021-01-13 09:32

    Maybe the inspector is crossing it out improperly but visually it's right?

    0 讨论(0)
提交回复
热议问题