Visual Studio 2010 中的 CSS 3.0
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4810401/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CSS 3.0 in Visual Studio 2010
提问by Sean Anderson
I would like to use Validation (CSS 3.0) instead of CSS 2.1 for Visual Studio 2010. I've scanned through SO and noticed a comment saying that 3.0 wasn't finalized so it wasn't available for 2008, but was unsure if this applied to 2010.
我想在 Visual Studio 2010 中使用 Validation (CSS 3.0) 而不是 CSS 2.1。我已经浏览了 SO 并注意到一条评论说 3.0 尚未最终确定,因此它不适用于 2008 年,但不确定这是否适用于 2010 年。
Do I just not use CSS 3?
我只是不使用 CSS 3 吗?
回答by Carter Medlin
Microsoft developers have released an update to the web standards to include CSS 3.0 in Visual Studio.
Microsoft 开发人员已发布 Web 标准更新,以在 Visual Studio 中包含 CSS 3.0。
Web Standards Update for Microsoft Visual Studio 2010 SP1 http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
Microsoft Visual Studio 2010 SP1 的 Web 标准更新 http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
After a simple installation, you will have the CSS 3.0 option in Visual Studio.
简单安装后,您将在 Visual Studio 中拥有 CSS 3.0 选项。
(The toolbar command is called "Cascading Style Sheet Version for Validation", and is on the "Style Sheet" toolbar.)
(工具栏命令称为“用于验证的级联样式表版本”,位于“样式表”工具栏上。)
回答by gruve
If you don't want to wait for the service pack, check this out:
如果您不想等待服务包,请查看以下内容:
http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions
http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions
Worked great for me, although I needed to consult the Q & A for some installation tips.
对我来说效果很好,虽然我需要咨询 Q&A 以获取一些安装技巧。
回答by code-d-code
For Visual Web Developer 2010 Express use this:
对于 Visual Web Developer 2010 Express,请使用:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "File"="css30.xml" "Friendly Name"="CSS 3.0"
回答by Fábio Correia
I did this for Visual Web Developer Express 2010:
我为 Visual Web Developer Express 2010 做了这个:
- Install this package.
- Find in registry any key with css21.xml
- Save keys as .reg
- Edit keys changing "css21.xml" by "css30.xml" and "CSS 2.1" by "CSS 3.0"
- Save it
- Execute .reg files and click YES to add the new keys to the registry
- You're done!!
- 安装这个包。
- 在注册表中使用 css21.xml 查找任何键
- 将密钥另存为 .reg
- 编辑键将“css21.xml”更改为“css30.xml”,将“CSS 2.1”更改为“CSS 3.0”
- 保存
- 执行 .reg 文件并单击 YES 将新密钥添加到注册表
- 你完成了!!
Example:
例子:
Windows Registry Editor Version 5.00
Windows 注册表编辑器 5.00 版
[HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_USERS.DEFAULT\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_USERS.DEFAULT\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_USERS\S-1-5-18\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_USERS\S-1-5-18\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]“友好名称”=“CSS 3.0”“文件” ="css30.xml"
[HKEY_USERS\S-1-5-21-819682056-1984509207-1467669795-1000\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "Friendly Name"="CSS 3.0" "File"="css30.xml"
[HKEY_USERS\S-1-5-21-819682056-1984509207-1467669795-1000\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A845092-9A849-1000-1467669795-1000\Software\Microsoft\VWDExpress\10.0_Config\Packages] ="CSS 3.0" "文件"="css30.xml"
回答by Fábio Correia
I looked a couple months ago and couldn't find CSS3 support either. I just use the W3C online validation tool.
我几个月前看了看,也找不到 CSS3 支持。我只是使用 W3C 在线验证工具。