欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

 

1.CSS 背景属性(Background)

background-color      背景色,取值如,red,#FF0000

background-image    背景图片,如:background-image:url(“./images/bg.png”);

background-position 背景开始位置,包括水平方向(X轴)和竖直方向(Y轴)的设置 X轴取值:left,center,right或像素值或百分比 Y轴取值:top,center,bottom或像素值或百分比

background-repeat   背景填充方式,取值:repeat-x|repeat-y|no-repeat

2.CSS 内边距属性(Padding)

3.CSS 文本属性(Text)

color     设置文本的颜色,如red,#FF0000

line-height   设置文本的行高

text-align     设置文本的对齐方式,如left、center、right

text-decoration  设置文本装修,如underline、none、line-through

4.CSS 字体属性(Font)

font-weight 设置字体粗细

font-size      设置字体的尺寸

font-family  设置字体系列

类选择器(.class)

格式:.classname { font-size : 16px; }

注意:网页中可给不同标签相同的class

ID选择器(#id)

格式:#idname { font-size : 16px; }

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c33849.shtml