hbuilder編寫出現(xiàn)的問題
#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% ;
? ? 用hbuilder寫的代碼在寫完page1_bg時頁面顯示了頁面一的背景
但是寫完page2_bg時頁面一的背景變小了,這是為什么
}
2016-08-29
.page{height: 100%;}
.page > .bg{ width:100%; height: 100%; z-index: -1; position:absolute;}
? 比照一下代碼 是不是漏了什么。。
2016-08-29
.page和.page > .bg的高度都設(shè)置成100%了咩。。。
2016-08-06
page的高度沒有定義吧?