Visual Studio 2010 Beta 2 html代码界面智能提示不正常的解决方法

装了2010,体验.net4.0和mvc2,突然发现在html界面中一些元素都被标上了绿色的下划线,Error List中显示警告:

Validation ($SCHEMA$): Element 'html' is not supported.等等。

国内的百度是没指望找到答案,搜到的都是不着边界的问题和稀里糊涂的答案。国外有一个解决方案:http://runtingsproper.blogspot.com/2009/11/vs2010-beta-2-validation-schema-element.html(需要跳墙),所以我至今没有看到他是怎么解决的,下面看另一个解决方案:

在"tools"-"Options"展开"Text Editor',再展开Html下的Validator,选择XHTML 1.0 Transitional确定,回到代码中,问题解决!

posted @ 2010-01-05 21:34  风海迷沙  阅读(644)  评论(0编辑  收藏  举报