CSS背景类样式修饰
背景色:background-color
关键字(gray)
十六进制表示方式(#808080)
rgb表示方式,如:rgb(128,128,128)
背景图像:background-image
background-image:url(images/f1.png)
背景重复:background-repeat:repeat-x;
repeat;默认
repeat-x;
repeat-y;
no-repeat;
inherit;继承父元素
背景定位:background-position:50%50%;
center
top
bottom
right
left
背景综合属性:background
background:red url(images/11.png) no-repeat center;
|