装了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确定,回到代码中,问题解决!

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2022-01-02
  • 2021-12-15
  • 2021-08-27
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2022-01-04
  • 2021-05-20
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案