uniapp某个页面高度占满写法

一,效果

在这里插入图片描述

二,实现过程

在这里插入图片描述

三,相关代码

<view class="myBox" :style="{height:screenHeight+'px'}" >
  </view>

this.screenHeight = uni.getSystemInfoSync().windowHeight

猜你喜欢

转载自blog.csdn.net/weixin_42349568/article/details/120083344