background:url(./img/1.png) no-repeat center center #fff fixed;
其中url是背景图片的地址。
no-repeat(repeat默认,repeat-x,repeat-y)是否对背景图片进行重复。
center(left center right) center(top center bottom)代表的是背景图片在父盒子中的位置代表的水平方向和垂直方向,它们两个必须一起写不能分开。
#fff代表的是背景颜色。可以使用background-color进行改变。
fixed(scroll)是图片随页面的滚动位置是否跟着改变。