RSS
热门关键字:  背景音乐代码  播放器代码  校播放器代码内网  漂亮的雪  浪漫
当前位置 :| 主页>校内网使用教程>

CSS代码语法(CSS Syntax)

来源:www.biyela.net 作者:新版校内网代码 时间:2008-02-11 点击:

#www.biyela.net {}
/* 此代码由 BIYELA校内网代码(www.biyela.net) 收集/整理/调试*/
CSS Syntax:
CSS语法
The CSS syntax is made up of three parts: a selector, a property and a value:
CSS的语法由三部分组成: 一个选择器,一个属性和一个值:

 Example Source Code [www.biyela.net]
selector {property: value}


The selector is normally the HTML element/tag you wish to define, the property is the attribute you wish to change, and each

property can take a value. The property and value are separated by a colon, and surrounded by curly braces:
选择器是你希望去定义的HTML元素/标签,改变属性,每个属性可以有一个值,属性和值由冒号区分开外面用大括号括起来:

 Example Source Code [www.biyela.net]
body {color: black}


Note: If  the value is multiple words, put quotes around the value:
注意:如果值为多个单词则用双引号括起来:

 Example Source Code [www.biyela.net]
p {font-family: "sans serif"}


Note: If you wish to specify more than one property, you must separate each property with a semicolon. The example below shows

how to define a center aligned paragraph, with a red text color:
注意:如果你想指定多个属性,你就必须将每个属性用分号隔开,下面的例子就演示了怎样定义居中红色文字段落:
}
 
BIYELA校内网代码 http://www.biyela.net

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表