加入如下 CSS:
body { background-image: url("背景图片(如果跟CSS不在同一路径下,记得改相对或绝对路径).jpg"); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;}