VS2010, HTML 5 and CSS 3 Validation

坚强是说给别人听的谎言 提交于 2019-12-07 10:29:22

问题


I want to switch CSS validation in VS2010 SP1 from CSS 2.1 to CSS 3.

I came across this answer:

Is it possible to change CSS Validation scheme in VS2010

What is not clear to me is how to activate CSS 3 validation. I did find that switching HTML validation to HTML 5 causes CSS to be validated as CSS 3 (after installing CSS 3 Intellisense Schema).

However, I would have thought that the HTML level and the CSS level would be orthogonal.

Am I missing something, or does the HTML validation switch truly also control the CSS validation level?


回答1:


First, right click on the toolbar in VS2010 and enable 'Style Sheet'. Then once a CSS file is open and has focus you can change the target CSS validator from the drop down.



来源:https://stackoverflow.com/questions/9572526/vs2010-html-5-and-css-3-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!