原因:子设置高度%是按照父高度进行计算
所以要先设置父高度
uni:
.hei{ //因为没有html body等标签template设置高度也无效
height: 100%;
position:fixed;
width: 100%;
}//可在最外层盒子使用
原因:子设置高度%是按照父高度进行计算
所以要先设置父高度
uni:
.hei{ //因为没有html body等标签template设置高度也无效
height: 100%;
position:fixed;
width: 100%;
}//可在最外层盒子使用