background-image:url(img/xxx.jpg) ——找到图片位置
background-size:100% 300px; ——给图片大小
background-repeat:no-repeat; ——背景图片不重复
background-position:left top; ——摆放位置
复合型写法(这样写会更方便)
background:url(img/xxx.jpg) no-repeat center/100% 100%;
(图片位置) (不重复) (居中) (大小)