對照了老師代碼,都一樣.page{ height: 100%;}/*分頁背景*/.page > .bg{ z-index: -1; position: absolute; width: 100%; height: 100%;}/*第一頁*/#page1 > .bg{ background: url(../img/p1_bg.jpg) no-repeat center center; background-size: 100%;}/*第二頁*/#page2 > .bg{ background: url(../img/p2_bg.jpg) no-repeat center center; background-size: 100%;/*第三頁*/#page3 > .bg{ background: url(../img/p3_bg.jpg) no-repeat center center; background-size: 100%;
為什么我第一張背景和第二張背景顯示了,第三張沒有顯示
神一樣的男人3392911
2017-03-27 09:45:42