uniapp 높이가 전체 화면을 채웁니다.

문제: 유니탭바가 있을 때 페이지의 나머지 부분이 가려짐

성취하다:

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

Supongo que te gusta

Origin blog.csdn.net/weixin_40841731/article/details/129336806
Recomendado
Clasificación