[英]CSS3 validation
I have a CSS file that is written in the best style I can. 我有一个CSS文件,它以最好的样式编写。 I just tried to validate it and it has about 40 errors.
我只是尝试验证它,它大约有40个错误。 Most of them are like this:
他们大多数是这样的:
Line 23, Column 3: character "d" not allowed in prolog display: none;
What does that mean? 这意味着什么? What is "prolog" in a CSS file?
什么是CSS文件中的“序言”?
What does this mean? 这是什么意思?
Line 158, Column 3: this is not an SGML document -ms-text-size-adjust: 100%;
As an older stack question suggests, I suspect you used W3C's html validator when you intended to use W3C's css validator . 正如一个较早的堆栈问题所暗示的那样,当您打算使用W3C的CSS验证 器时,我怀疑您使用了W3C的html验证 器 。
Note: CSS validation and cross-browser compatibility are considered mutually exclusive, and best practices demand the latter. 注意:CSS验证和跨浏览器兼容性被认为是互斥的,而最佳实践则要求后者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.