What does it mean when a CSS rule is grayed out in

2019-01-10 05:19发布

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 seems that a strike-through indicates that a rule was overridden, but what does it mean when a style is grayed out?

8条回答
我命由我不由天
2楼-- · 2019-01-10 06:03

enter image description here

The new version of chrome developer shows where it is inherited from.

查看更多
够拽才男人
3楼-- · 2019-01-10 06:09

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.

查看更多
登录 后发表回答