Web Developer tips (81): select the CSS mode for CSS smart prompts and attributes

Source: Internet
Author: User

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.

& Lt; TD width = "184" valign = "TOP" & gt; CSS 1.0 & lt;/TD & gt; & Lt; TD width = "184" valign = "TOP" & gt; CSS 1.0 & lt;/TD & gt; & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.0 & lt;/TD & gt; & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.0 & lt;/TD & gt; & Lt; TD width = "184" valign = "TOP" & gt; CSS 2.1 & lt;/TD & gt;
HTML schema CSS schema
Internet Explorer 6.0 Internet Explorer 6.0
Internet Explorer 3.02/Netscape Navigator 3.0
Netscape Navigator 4.0 CSS 2.1 *
HTML 4.01
XHTML 1.0 transitional
XHTML 1.0 frameset
XHTML 1.1

 

MoreArticleSee: Watch Xuan [http://www.watch-life.net/]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.