CSS文件VS皮肤文件 [英] CSS files vs skin files

查看:289
本文介绍了CSS文件VS皮肤文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:我想知道的:

  1. 可以的。皮肤文件替换 CSS文件?
  2. 有什么优势     。皮肤文件?

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

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

解决方案

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

  

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

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

 < ASP:按钮=服务器背景色=浅蓝色前景色=黑/>
 

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

Q: I want to know :

  1. Can the .skin files replace the CSS files?
  2. What are the advantages of .skin files?

  3. Can .skin files offer more than CSS files?

    and

  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆