0
点赞
收藏
分享

微信扫一扫

uniapp 高度铺满全屏


问题:在有uni-tabbar的情况下,页面铺满剩下的部分

实现:

<template>
<view :style="{height:screenHeight+'px'}" class="page">
</view>
</template>
<script>
export default {
data() {
return {
screenHeight: "",
}
},
onLoad() {
this.screenHeight = uni.getSystemInfoSync().windowHeight;
},
methods: {
}
}
</script>

举报

相关推荐

0 条评论