一、外边距-margin
外边距合并:
二、CSS重写
去掉某些标签默认的样式
最基本的:
将margin、padding全部设置成0,list-style-type设置成none
三、背景图像
1. 背景图像尺寸
属性:background-size
取值: v1 v2:宽度、高度
v1% v2%:原始大小的百分比
cover:扩展背景图像,使背景图完全覆盖背景区域
contain:将图像扩展到最大尺寸,按比例拉伸
2.背景图像固定
background-attachment
取值: scroll(默认)
fixed:背景图像固定
3.背景图片位置
background-position
取值: left right top bottom center
x% y%水平偏移量 数值偏移量
4.背景绘制区域
background-clip
取值: border-box:背景被裁剪到边框
padding-box:背景被裁剪到内边距框
content-box:
5.背景的定位区域
background-origin
取值: border-box
padding-box
content-box
6.渐变属性
background-image
取值: linear-gradient 线性渐变
radial-gradient 径向渐变
repeat-linear-gradient 重复线性渐变
repeat-radial-gradient 重复径向渐变