What does it mean when a CSS rule is grayed out in Chrome's element inspector?

后端 未结 8 2256
夕颜
夕颜 2020-11-28 20:08

I\'m inspecting an h2 element on a web page using Google Chrome\'s element inspector and some of the CSS rules--which appear to be applied--are grayed out. It

8条回答
  •  情深已故
    2020-11-28 20:51

    This also occurs if you add a style through the inspector, but that new style doesn't apply to the element you have selected. Usually the styles shown are only those for the element selected, so the grey indicates that the style you just added doesn't select the element which has focus in the DOM navigator.

提交回复
热议问题