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>