7.15知识点总结

1.文本设置:

字体大小:font-size:px/pt/pm;(1em=12pt=16px)

字体颜色:color:red/#ff0/rgb(255,255,255);

字体倾斜:font-style:italic(斜体字)/oblique(倾斜的文字)/normal(正常显示);

加粗:font-weight:bolder(更粗的)/blod(加粗)/lighter(变细)/normal(常规)/500(100-900);

首行缩进:text-indet

文本水平对齐:text-align:left/right/center/justify(只对多行起作用);

文本修饰:text-decoration:none/underline/overline/line-through(删除线);

字间距:letter-spacing/word-spacing

行高:line-height

2.列表设置

定义列表符合样式:list-style-type:disc(实心圆)/circle(空心圆)/square(实心方块)/none(去掉符号);

设置列表图片:list-style-image:url();

设置列表标记位置(在列表外):list-style-position:outside;

设置列表标记位置(在列表内):list-style-position:inside;

简写(去除列表符号):list-style:none;

3.背景设置

背景颜色:background-color:rgba(,,,);最后一个透明度取值范围0-1

背景图片:background-image: url(图片的位置);

背景大小:background-size

背景平铺:background-repeat:no-repeat/repeat/repeat-y/repeat-x;

背景位置:background-position:center center;/background-position:-100px -100px;

背景附着:background-attachment:fixed/scroll;

简写:background:background-color,background-image,background-repeat,background-attachment,background-position,background-size。

           【例如:background:#ff0000    url(图片位置)  no-repeat     fixed    center/100% 100%;】(background-size,一定要用/分隔)



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值