English 中文(简体)
CSS 验证器, 您可以在其中禁用每个文件的错误信息
原标题:CSS validator where you can disable error messages on per file basis

是否有一个 CSS 验证符, 可以在文件中暗示, la jslint, 该文件或规则中哪些审定规则是有效的, 哪些规则是无效的 。

我试过了

  • W3C 验证符

  • csslint (csslint )

两者均不提供这一功能,而且总是导致对人们想要使用的标记的验证错误(IE黑客、供应商延期)

为了进一步澄清问题:我想用这个验证器在承诺钩中捕获不符合项目政策的 CSS 。 如果人们认为供应商的前缀是好的还是坏的,我不感兴趣。

最佳回答

我不认为那里有一种工具 足够精密 能找到所有样式表 你页面链接的所有样式表 并为每个样式表提供定制的验证规则

我经常做的是将我的 IE 黑客隔离在一个单独的文件中, 隐藏在一个有条件的评论中, 所以验证人永远看不到他们, 即使我通过我的页面的 URI, 它链接到它的所有样式表。

对于销售商的前缀,您可以告诉 W3C 验证符< a href='" https://stackoverflow.com/a/8470345/106224" 提醒,而不是错误 ,尽管您无法让它完全忽略它们, 因为它们只是 不验证

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签