CSS网页美化设计属性

一、背景与前景

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;

转载于:https://www.cnblogs.com/DORCASQING/p/3977499.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值