Chrome Developer Tools: How to find out what is overriding a CSS rule?

前端 未结 3 1640
暗喜
暗喜 2020-11-27 10:08

Well, this is pretty straightforward. If Chrome\'s Developer Tools is showing me that a style is overridden, how to see what CSS rule is overriding it?

I want to kno

3条回答
  •  庸人自扰
    2020-11-27 10:52

    crtrl + shift + c and inspect the element. Then find the style without a line through it, in the box in the down right corner.

    the override is in most cases at the top (and without a line through it, as this style is the "winning" one).

提交回复
热议问题