CSS文件VS皮肤文件文件、皮肤、CSS、VS

2023-09-04 00:51:04 作者:等待就是浪费青春

问:我想知道的:

可以的。皮肤文件替换 CSS文件?

有什么优势     。皮肤文件?

可以。皮肤文件提供更多 比CSS文件?

当使用在我的web皮肤文件 应用程序?

解决方案

Asp.net皮肤是asp.net主题的一部分。从 MSDN文档:

  

主题是由一组的   元素:外观,级联样式   表(CSS),图​​像和其他   资源。至少,一个主题将   含有皮肤。主题定义在   在你的网站上的特殊目录   或您的Web服务器上。

皮肤被用来定义默认的标记asp.net服务器控件:

 < ASP:按钮=服务器背景色=浅蓝色前景色=黑/>
 
vs2015编写css文件的示例

而CSS被用来风格你本地的HTML元素的当然asp.net服务器控件(呈现为本地元素,CSS,也可以用于这些样式

Q: I want to know :

Can the .skin files replace the CSS files?

What are the advantages of .skin files?

Can .skin files offer more than CSS files?

and

When to use skin files in my web application?

解决方案

Asp.net skins are one part of asp.net Themes. From the MSDN docs:

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.

Skins are used to define default markup for asp.net server controls:

<asp:button runat="server" BackColor="lightblue" ForeColor="black" />

whereas CSS is used to style your native HTML elements (of course asp.net server controls render as native elements so CSS can also be used to style these

 
精彩推荐
图片推荐