背景图片
background-color : transparent | color
transparent : 背景色透明
color : 指定颜色。请参阅颜色单位和附录:颜色表
background-repeat : repeat | no-repeat | repeat-x | repeat-y
repeat : 背景图像在纵向和横向上平铺
no-repeat : 背景图像不平铺
repeat-x :
背景图像在横向上平铺
repeat-y : 背景图像在纵向平铺
background-image : none | url (url)
none : 无背景图
url :
使用绝对或相对地址指定背景图像
background-attachment : scroll | fixed
scroll : 背景图像是随对象内容滚动
fixed :
背景图像固定
background-position : length
|| length
background-position : position ||
position
length : 百分数
| 由浮点数字和单位标识符组成的长度值。请参阅长度单位
position :
top | center | bottom | left | center | right
背景位置的混合写法
background-position: 0 center;// x为20,y为center
background: 背景颜色 背景地址 背景平铺 背景图像滚动 背景图片位置