背景color
background-color
默认transparent(透明)
背景图片
background-image: url();
背景平铺
background-repeat:
repeat
no-repeat
repeat-x
repeat-y
背景图片在背景颜色上面
背景图片位置
background-position: x y;
精确单位 (省略则默认另一个为x, y垂直居中)
x: px 距离上边
y: px 距离左边
方位名词 (省略的默认居中)
x: left center right
y: top center bottom
可混合使用
第一个为x
第二个为y
背景固定
background-attachment
scroll(默认)
fixed
复合写法
无顺序要求



京公网安备 11010502036488号