body{ background-image:url(login.jpg); background-size:cover; } 图片平铺,可以不用具体设置body宽度和高度大小,就可以直接将图片平铺整个页面