开发者

what does the yellow color warning icon mean in the chrome web inspector?

what does th开发者_运维知识库e yellow color warning icon in the chrome web inspector imply?

what does the yellow color warning icon mean in the chrome web inspector?

Everything is working fine and there doesn't seem to be any errors whatsoever though..


According to the Chrome Developer Tools documentation, a CSS warning icon means that Chrome doesn't understand the CSS rule. Chrome ignores these rules.

http://code.google.com/chrome/devtools/docs/elements-styles.html#styles_view

This may mean there is a problem with your CSS, or it may perfectly fine and expected behavior.

In the common case where you include browser specific CSS that Chrome should ignore, chrome will warn you about the rule, while other browsers will follow the rule. That's not the case with the example CSS presented in the question, which needs to be fixed.


It means there is something wrong with the property or its value (or, that it's unrecognized).

border-top-color: rgba(0, 0, 0, 0.5)px is clearly wrong - the px should not be there.

As another example, -moz-transition will trigger the same warning, because WebKit does not recognize it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜