. CSS and. Skin

Source: Internet
Author: User

Let's take a look. You are welcome to discuss it. Based on ASP. net2.0 beta2.

In ASP. net2.0, theme and master page are added, which are used to beautify the interface.
You can create two types of files in theme:. CSS and. Skin.

CSS files, like in the past, only need to design a type of theme, put these CSS files in a folder, put them under the app_themes directory.

When using CSS to control various objects on the interface, you may encounter the following problems: When controlling controls with many Display Properties, you must define many CSS classes by yourself, and these CSS classes may conflict with each other. For example, I have a CSS control for the control font and a menu font control. As a result, when the mouse moves over the menu, two types of control work alternately. Another problem is that you have to specify the CSS class name for the control on the interface.

In contrast, the skin file may be more direct, with UI control for. net. Because skin directly controls a control, you can directly use its properties. The disadvantage is that it is very difficult for the artist to figure out the properties and functions of those controls.

Appendix

Definition in CSS

. DataGrid
{
Color: blue;
}

Definition in Skin
<Asp: gridview runat = "server" skinid = "gridviewskin" backcolor = "white">
<Alternatingrowstyle backcolor = "blue"/>
</ASP: gridview>

Related Article

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.