文章摘要:背景色 background-color 背景图像 background-image 背景重复 background-repeat 值:repeat-y丨repeat-x丨no-repeat 背景定位 background-position 值:ce
背景色
background-color
背景图像
background-image
背景重复
background-repeat
值:repeat-y丨repeat-x丨no-repeat
背景定位
background-position
值:center丨top丨bottom丨right丨left丨百分数值丨长度值
背景关联
background-attachment
值:scroll丨fixed(背景固定)
背景图片的尺寸
background-size
值:百分数值丨长度值丨cover丨contain
背景图片的定位区域
background-origin
值:content-box丨padding-box丨border-box
背景的绘制区域
background-clip
值:border-box丨padding-box丨content-box