搬运自: https://blog.csdn.net/ZLK1142/article/details/90489117
body { width: 100%; height: 100vh; /* 重点一 */ margin: 0 auto; background-image: url(../img/1.jpg); background-repeat: no-repeat; background-size: cover; /* 重点二 */ overflow: auto; }
搬运自: https://blog.csdn.net/ZLK1142/article/details/90489117
body { width: 100%; height: 100vh; /* 重点一 */ margin: 0 auto; background-image: url(../img/1.jpg); background-repeat: no-repeat; background-size: cover; /* 重点二 */ overflow: auto; }