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>

猜你喜欢

转载自blog.csdn.net/weixin_40841731/article/details/129336806