ASP.NET 2.0,AppTheme:如何为我的ASP.NET网站以最佳方式利用AppTheme [英] ASP.NET 2.0, AppTheme: How can we utilize AppTheme in best way for my ASP.NET WEBSITE
问题描述
我正在编写asp.net网站,该网站将在公共网络上托管.我对AppTheme不太了解,特别是在asp.net 2.0中利用主题,css和皮肤.
I am writing asp.net website which will going to be host on public network. I don't have very much knowledge about AppTheme specially utilizing theme, css and skin in asp.net 2.0.
以前,我曾使用过asp和asp.net 1.0,我只写css类,并在每个我想拥有css的控件中写属性class ="***".
Previously i have worked with asp and asp.net 1.0 where i only write css class and write attribute class="***" inside every control where i want to have css.
我不知道;对于asp.net 2.0来说这是否是正确的做法,因为在asp.net 2.0中,我们具有高级功能,例如主题和外观.
I don;'t know whether this is right practice with asp.net 2.0 because in asp.net 2.0 we have advance features like theme and skins.
所以我可以向您寻求帮助,以便以最佳方式使用主题,CSS和皮肤.我也想知道使用带asp.net 2.0的CSS与以前版本比较有何不同.
So can i have help from you so that i can use theme, css and skin in best way . Also i would like to know how different is using css with asp.net 2.0 AS COMPARE WITH PREVIOUS VERSION.
推荐答案
主题由一组元素组成:外观,级联样式表(CSS),图像和其他资源.主题至少包含皮肤.主题在您的网站或Web服务器上的特殊目录中定义.
Themes are made up of a set of elements: skins, cascading style sheets (CSS), images, and other resources. At a minimum, a theme will contain skins. Themes are defined in special directories in your Web site or on your Web server.
以下是 MSDN 中的一些链接,它们将帮助您获得开始:
Here are some links from MSDN that will help you get started:
- ASP.NET Themes and Skins Overview
- How to: Define ASP.NET Page Themes
- How to: Apply ASP.NET Themes
- How to: Apply ASP.NET Themes Programmatically
- Walkthrough: Creating User-Selectable Themes
此外,我还建议您在 ASP.NET 2.0中的主题上的Scott Allens文章获得快速概述和一些示例: http://www.odetocode.com/articles/423.aspx
Also, I would recommend Scott Allens article on Themes In ASP.NET 2.0 for a quick overview and some samples: http://www.odetocode.com/articles/423.aspx
这篇关于ASP.NET 2.0,AppTheme:如何为我的ASP.NET网站以最佳方式利用AppTheme的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!