Original article address: how to select the CSS schema for intelliisense and CSS Properties
In Visual Studio 2008, a style toolbar (style sheet toolbar) allows you to select the CSS schema used, as shown in
However, this setting only supports the CSS editor and does not support smart prompts on the aspx and HTML pages. The setting of attributes/values in the CSS property form is also not supported. As shown in:
Http://www.watch-life.net/visual-studio/how-to-select-the-css-schema-for-intellisense-and-css-properties.html
In fact, setting the CSS mode for aspx and HTML pages is a bit hard to understand. In vs2008, the currently used CSS mode is inferred rather than selected. This setting is invisible. Select the CSS mode to work with the HTML mode (HTML schema ).Source codeSelect the toolbar of the editor, as shown in:
In the HTML sourceCodeIn the toolbar of the editor, by selecting the "verified target architecture" item, a corresponding CSS mode is implicitly selected. In the web designer, this option can be used for HTML, aspx, and other similar open documents.
The following table corresponds to the HTML mode and CSS mode in Visual Studio 2008.
| HTML schema |
CSS schema |
| Internet Explorer 6.0 |
Internet Explorer 6.0 |
| Internet Explorer 3.02/Netscape Navigator 3.0 | & Lt; TD width = "184" valign = "TOP" & gt; CSS 1.0 & lt;/TD & gt;
| Netscape Navigator 4.0 |
CSS 2.1 * |
| HTML 4.01 | & Lt; TD width = "184" valign = "TOP" & gt; CSS 1.0 & lt;/TD & gt;
| XHTML 1.0 transitional | & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.0 & lt;/TD & gt;
| XHTML 1.0 frameset | & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.0 & lt;/TD & gt;
| XHTML 1.1 | & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.1 & lt;/TD & gt;
MoreArticleSee: Watch Xuan [http://www.watch-life.net/]