1.方法一
page {
height: 100%;
}
2.方法二
使用scroll-view包裹,并且给scroll-view设置高度
<scroll-view class="page1" scroll-y :style="{ height: screenHeight + 'px' }">
onshow里面获取高度
this.screenHeight = uni.getSystemInfoSync().windowHeight;
1.方法一
page {
height: 100%;
}
2.方法二
使用scroll-view包裹,并且给scroll-view设置高度
<scroll-view class="page1" scroll-y :style="{ height: screenHeight + 'px' }">
onshow里面获取高度
this.screenHeight = uni.getSystemInfoSync().windowHeight;