如何在visual studio 2010中设置默认的css验证方案?

时间:2022-04-01 00:23:09

well the problem is that visual studio always tries to validate for css 1.0 as i open any file and i need to reset it to 2.1 every time i open any css file.
so was asking if there is any way to set the default to be 2.1 ? thanks

好吧问题是,当我打开任何文件时,visual studio总是尝试验证css 1.0,每次打开任何css文件时我都需要将其重置为2.1。所以问是否有办法将默认设置为2.1?谢谢

1 个解决方案

#1


12  

i found the answer on http://forums.asp.net/t/1486063.aspx/1
well its seems that to change the default css validation you need to change the default html validation from Tools>Options>Text Editor>HTML>Validation.
so i changed the target to XHTML 1.0 Transitional and now the css is validated to 2.1 by default :)

我在http://forums.asp.net/t/1486063.aspx/1上找到了答案,似乎要更改默认的css验证,您需要从工具>选项>文本编辑器> HTML>更改默认的html验证验证。所以我将目标更改为XHTML 1.0 Transitional,现在css默认验证为2.1 :)

#1


12  

i found the answer on http://forums.asp.net/t/1486063.aspx/1
well its seems that to change the default css validation you need to change the default html validation from Tools>Options>Text Editor>HTML>Validation.
so i changed the target to XHTML 1.0 Transitional and now the css is validated to 2.1 by default :)

我在http://forums.asp.net/t/1486063.aspx/1上找到了答案,似乎要更改默认的css验证,您需要从工具>选项>文本编辑器> HTML>更改默认的html验证验证。所以我将目标更改为XHTML 1.0 Transitional,现在css默认验证为2.1 :)