body {background:url(bg.jpg) top center no-repeat; background-size:cover;} 这样的话一张背景图片就可以平铺整个屏幕 转载于:https://www.cnblogs.com/BoYu045535/p/4195333.html