html,body{
height: 100%;
}
.topView{
width: 100%;
height: 40px;
background-color: blue;
}
.conView{
width: 100%;
height: 70%;
background-color: gainsboro;
}
原为以上代码,可编译后height:100%;无效
将.html,body{} 改为 page{}
page{
height: 100%;
}
.topView{
width: 100%;
height: 40px;
background-color: blue;
}
.conView{
width: 100%;
height: 70%;
background-color: gainsboro;
}
成功了