简体   繁体   English

验证中的Css文件交互

[英]Css file interaction in validation

I'm working with the w3c's css validator. 我正在使用w3c的css验证器。 The validator will take an html page & check all it's inline, embedded & linked CSS. 验证器将采用html页面并检查所有内联,嵌入和链接的CSS。

My question is - is it safe to validate all my css separately (validate the inline / embedded css without the linked css being available etc)? 我的问题是 - 分别验证我的所有CSS是否安全(验证内联/嵌入式CSS没有链接的css可用等)?

To ask this another way - is there anything the validator can error check better when all the elements of the css for a page are validated together? 要问另一种方式 - 当页面的css的所有元素一起验证时,验证器可以更好地检查错误吗?

I dont think there is anything that the validator could say better with all the files at once, except maybe that some of your classes or Id's in your html do not have styles in your CSS, but thats perfectly valid anyway. 我不认为验证器可以同时对所有文件说得更好,除非您的html中的某些类或Id在CSS中没有样式,但无论如何都是完全有效的。 On a side note, why are you so worried that your page is perfectly valid? 另外,为什么你担心你的页面完全有效?

W3C验证器仅检查标记的语法,因此可以单独检查CSS规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM