码迷,mamicode.com
首页 > Web开发 > 详细

CSS网页美化设计属性

时间:2014-09-17 18:07:02      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   os   ar   strong   sp   on   c   

一、背景与前景

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;

CSS网页美化设计属性

标签:style   color   io   os   ar   strong   sp   on   c   

原文地址:http://www.cnblogs.com/DORCASQING/p/3977499.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!