CSS3可以通过background-size来设定图片大小,可以是像素或者是百分比,如background-size:100px 200px;表示把背景图片大小调整为100x200px,如果div已经调整大小,可以用 background-size: 100% 100% 调整背景图片