是否可以在 VS2010 中更改 CSS 验证方案 [英] Is it possible to change CSS Validation scheme in VS2010

查看:30
本文介绍了是否可以在 VS2010 中更改 CSS 验证方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VS2010 中编辑一个简单的 CSS 文件,编辑器似乎对 CSS 的理解相当有限,例如:

I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example:

#my-rule {
     position:relative;
}

生成警告:Validation(CSS 1.0): 'position' is not a known CSS property name

我猜有一个选项可以将 CSS 验证更改为 CSS 2.1 或类似的东西,但我终生找不到它.

I'm guessing that there is an option some where to change the CSS validation to CSS 2.1 or some thing close, but can't for the life of me find it.

推荐答案

顶部菜单中有一个下拉菜单,您可以在其中切换 css 验证.它被称为用于验证的级联样式表版本.如果您看不到它,请右键单击菜单并检查样式表,以便显示.

You have a dropdown in the top menu where you can switch the css validation. It's called Cascading stylesheet version for validation. If you can't see it right click on the menu and check Style sheet so it will show.

这篇关于是否可以在 VS2010 中更改 CSS 验证方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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