VS2010,HTML 5和CSS 3验证 [英] VS2010, HTML 5 and CSS 3 Validation

查看:183
本文介绍了VS2010,HTML 5和CSS 3验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将VS2010 SP1中的CSS验证从CSS 2.1切换到CSS 3.

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

我遇到了这个答案:

是否可以更改CSS验证方案在VS2010

我不清楚的是如何激活CSS 3验证。我发现,将HTML验证切换到HTML 5会导致CSS验证为CSS 3(安装 CSS 3 Intellisense Schema )。

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).

但是,我认为HTML级别和CSS级别是正交的

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

我错过了什么,或者HTML验证开关是否真的也控制了CSS验证级别。

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

推荐答案

首先,右键单击VS2010中的工具栏并启用样式表。然后,一旦CSS文件打开并具有焦点,您可以从下拉列表中更改目标CSS验证器。

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.

这篇关于VS2010,HTML 5和CSS 3验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆