css+div背景样式
1、背景图像:background-image
url(路径) 指图像路径
none 默认,不显示背景图像

2、背景图像是否重复(平铺):background-repeat
repeat 默认,背景图像将在垂直方向和水平方向重复
repeat-x 背景图像在水平方向重复
repeat-y 背景图像在垂直方向重复
no-repeat 背景图像仅显示一次

3、背景图像的起始位置:background-position
top (left上左,center上中,right上右)
center(left中左,center居中,right中右)
bottom(left下左,center下中,right下右)
(单位像素px/百分号%)

4、背景图像随页面其余部分滚动:background-attachment
scroll 默认,背景图像会随页面其余部分滚动而移动
fixed 当页面其余部分滚动时,背景图像不会移动

5、背景图像简写:
background:颜色 url(图像路径) 重复 起始位置 滚动;
举例说明:
background:#0f0 url(dengji_vip.png) no-repeat top left fixed;

6、<style type="text/css">
*{margin:0;padding:0;}
div{width:200px;margin:0px auto;background:url(../images/2.png) no-repeat;}
div ul li{font-size:15px;color:#93b0b9;list-style:none;line-height:24px;text-align:center;padding-top:5px;}
</style>
<body>
<div>
<ul>
<li>列表一</li>
<li>列表二</li>
<li>列表三</li>
<li>列表四</li>
<li>列表五</li>
<li>列表六</li>
</ul>
</div>
</body>
