[ASP. NET] mization topic and Stylesheet topic details

Source: Internet
Author: User

1. mization topic-Master Control

If the Theme attribute is used for the page in an example, this means that the Custonization topic is used in this example to set the style for the page. The Customization topic determines the style of the page element. If you manually set the style of the page element and the page is controlled by the Customization topic, these styles can be applied only when the topic does not contain the style of the corresponding element.

2. Stylesheet topic-CSS of the server control

To use a topic as a style sheet, you only need to use the StyleSheetTheme attribute at the top of the page. This change means that developers can set a small number of styles in the style attribute of each tag, and provide a consistent appearance for the site in the topic category.

3. Customization and Stylesheet themes

ASP. NET does not have any rules to specify that only Stylesheet or Customization topics can be used on the page. If you want to use two levels of styles on the page, you can use the theme in the site for both mandatory and optimal reasons.

For example, you may specify that the main elements of different pages must be consistent in appearance. The <body> Label of the page must always be a specific font, And the Menu control must always be a node of a specific style. However, you also need to put the topic that only defines the style of the Label control, use the period as the topic of Customization. Then, you can use other style information to create a different topic and apply the style that overwrites a specific element when creating the site. Then, you can use the topic as the Stylesheet topic. The following list shows how to set the style order for an application:

(1) Stylesheet topic

(2) CSS style

(3) Element style

(4) mization topic

The style specified in the mization topic always overwrites all other styles.

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.