CSS文件VS皮肤文件 [英] CSS files vs skin files
问题描述
问:我想知道的:
- 可以的。皮肤文件替换 CSS文件?
-
有什么优势 。皮肤文件?
-
可以。皮肤文件提供更多 比CSS文件?
和
-
当使用在我的web皮肤文件 应用程序?
Asp.net皮肤是asp.net主题的一部分。从 MSDN文档:
主题是由一组的 元素:外观,级联样式 表(CSS),图像和其他 资源。至少,一个主题将 含有皮肤。主题定义在 在你的网站上的特殊目录 或您的Web服务器上。
皮肤被用来定义默认的标记asp.net服务器控件:
< ASP:按钮=服务器背景色=浅蓝色前景色=黑/>
而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
这篇关于CSS文件VS皮肤文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!