白茶清风无别事  

做移动端App的时候 高度一般会根据页面的元素进行自动设置,不会铺满整个屏幕。通过以下代码实现满屏高度。

#app{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  bottom: 0px;
}
posted on 2019-07-16 15:22  _Pluto  阅读(3665)  评论(0编辑  收藏  举报