In Firebug, how to tell what is overriding a style?

后端 未结 5 1320
轻奢々
轻奢々 2021-01-11 10:42

I have this css:

fieldset li {  
padding-bottom: 0em;  
}  

However, it wasn\'t behaving properly, and using firebug, I see that style has

相关标签:
5条回答
  • 2021-01-11 11:17

    Just locate the instance of that attribute name that isn't crossed out, that is the one overriding.

    0 讨论(0)
  • 2021-01-11 11:18

    If a CSS rule is overridden although it is the top-most rule of that property, look further down for a rule that has the !important override set.

    0 讨论(0)
  • 2021-01-11 11:23

    What ever styles are above the crossed out styles are usually overriding it. If that is not the case, start clicking the disable style icons and see where the issue is.

    0 讨论(0)
  • 2021-01-11 11:25

    If you select the misbehaving item in question, it should give you a list of all the styles applied to it. The bottom should have the most specific styles. If you start at the fieldset li style, you should be able to scroll down until you see one that has overridden it.

    0 讨论(0)
  • 2021-01-11 11:29

    They are sorted, so the most upper definition overrides the lower one(s).

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