CSS-Cascading StyleSheet

CSS is abbraviation of Cascading StyleSheet. 

 

It is used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in html and xhtml, but the language can be applied to any kind of XML document, including SVG and XUL.

 

It is designed primarily to enable the separation of document content (written in HTML or a similar markup languages) from document presentation, including elements such as the color, fonts, and layout. This separation can improve content accessibility

 

 

It is a style sheet language used to describe the presentation (that is, the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in html and xhtml, but the language can be applied to any kind of xml document, including SVG  and XUL.

 

It is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the colorsfonts, and layout. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and onBraille-based, tactile devices. While the author of a document typically links that document to a CSS stylesheet, readers can use a different stylesheet, perhaps one on their own computer, to override the one the author has specified.

 

It specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.

 

The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css is registered for use with CSS by RFC 2318 (March 1998).

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CSSCascading Style Sheet 的缩写。译作「层叠样式表单」。是用于(增强)控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。 你可以用以下三种方式将样式表加入您的网页。而最接近目标的样式定义优先权越高。高优先权样式将继承低优先权样式的未重叠定义但覆盖重叠的定义。例外请参阅important声明。   将样式表加入到HTML中   http://www.cssplay.org.cn/css-tutorial/20080128/2.html   链入外部样式表文件 (Linking to a Style Sheet)   你可以先建立外部样式表文件(.css),然后使用HTML的link对象。示例如下:   <head>   <title>title of article</title>   <link rel=stylesheet href="http://baike.baidu.com/css/font.css" type="text/css">   </head>   而在XML中,你应该如下例所示在声明区中加入:   <? xml-stylesheet type="text/css" href="http://baike.baidu.com/css/font.css" ?>>   定义内部样式块对象 (Embedding a Style Block)   你可以在你的HTML文档的<HTML>和<BODY>标记之间插入一个<STYLE>...</STYLE>块对象。 定义方式请参阅样式表语法。示例如下:   <html>   <style type="text/css">   <!--   body {font: 10pt "Arial"}   h1 {font: 15pt/17pt "Arial"; font-weight: bold; color: maroon}   h2 {font: 13pt/15pt "Arial"; font-weight: bold; color: blue}   p {font: 10pt/12pt "Arial"; color: black}   -->   </style>   <body>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值