一、背景与前景

1.background属性

background-color--背景颜色

background-image:url() --背景图片路径要写在url()中.

background-attachment:fixed--背景图固定,字动图不动.scroll -- 背景与字一起滚动,默认.

background-repeat:repeat--平铺 no-repeat--不平铺 repeat-x--横向平铺 repeat-y--纵向平铺.

background-position:top--顶端 right--右边距  bottom,left,像素

font-family:字体名称(微软雅黑,宋体)

font-size:像素(12px,14px,18px),2.5em,200%

font-weight:是否加粗。bold,normal

font-style:是否倾斜。italic,normal

color:

text-decoration:none,underline,overline,line-through

text-align:left,center,right

vertical-align:top,middle,bottom

text-indent:首行缩进量

line-height:行高 1.5-2倍的字体大小

二、边界与边框

1.border类:

2.margin类:

3.padding类:

三、列表与方块

1.width,height,(left,top,right,bottom)只有在绝对定位时可用

2.list-style-type,list-style-image,list-style-position

四、格式与布局

1.position:fixed,absolute,relative

2.z-index:

3.overflow:超出范围;scroll-出滚动条;hidden-隐藏

4.float:浮动方向。

5.clear:both;

posted on 2014-09-17 16:45  灵心  阅读(271)  评论(0编辑  收藏  举报