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

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

问题描述

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

 #my-rule {
position:relative;
}

生成警告:验证'position'不是一个已知的CSS属性名称



我想我有一个选项,在哪里可以更改CSS验证为CSS 2.1或一些事情关闭,但不能为我的生活找到它。

解决方案

菜单,您可以在其中切换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;
}

generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name

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.

解决方案

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天全站免登陆