字体大小: 设置字体大小(绝对和相对) p{ font-size: 12px } 规则: font-size: 12px absolute font-size: 12px absolute font-size: medium absolute font-size: smaller Relative font-size: normal Relative font-size: larger Relative font-size: 50% Relative
字体粗细属性: 这个属性设置字体的粗细程度: p { font-weight: bold } 属性规则: font-weight: normal font-weight: bold font-weight:bolder font-weight: lighter font-weight: <100-900>
字体风格: 字体风格属性控制字体是否斜体,比如: p {font-style: italic; } 可能的几个值: font-style: oblique 斜体 font-style: italic 斜体 font-style: normal 正常
字体属性: 字体属性控制元素的字体: p {font-family: Verdana} 更多的例子: font-family: Verdana font-family: Times font-family: Arial,Verdana,sans-serif 如果没有第一个字体找第二个,依次.
背景定位: 背景定位属性用来指定背景图片在网页中的展示位置. body{ background-image; url(“dizhi”); background-repeat: no-repeat; background-position: 10% 10%; } 规则很简单: background-position: <x> <y> 用具体数值或百分比 background-position: [top |center |bottom] 用关键字定位 [left |center |right]
背景附着: 这个 background-attchment属性可以控制北京是否随网页滚动. body{ background-image; url(“dizhi”); background-repeat: no-repeat; background-attachment: fixed; } 以下为几个常见值: background:attachment: scroll 背景随着滚动 background:attachment: scroll 背景固定 background-attachment: inherit 继承父值
背景重复1: 你可以对背景显示的方式进行微调,通过backgroung-repeat属性,你可以指定背景的重复方式,下面的规则是在说背景图片不允许重复: body { background-image: url(“地址”); background-repeat: no-repeat; } 下面是不同的选择规则: background-repeat: repeat 重复 background-repeat: repeat-x 仅平行重复 background-repeat: repeat-y 仅垂直重复 background-repeat: no-repeat 不重复 background-repeat: inherit 继承父值
背景图片2: 背景重复1: 你可以对背景显示的方式进行微调,通过backgroung-repeat属性,你可以指定背景的重复方式,下面的规则是在说背景图片不允许重复: body { background-image: url(“地址”); background-repeat: no-repeat; } 下面是不同的选择规则: background-repeat: repeat 重复 background-repeat: repeat-x 仅平行重复 background-repeat: repeat-y 仅垂直重复 background-repeat: no-repeat 不重复 background-repeat: inherit 继承父值
背景图片1: 在CSS中,你可以对任何元素指定背景图片,比如: body{ background-image: url(“图片地址”); } 规则如下: background-image: url(“<location>”) 通过网址来指定 background-image: none background-image: inherit 继承父值
-
Calendar
February 2012 M T W T F S S « May 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 -
Meta

