uniapp display flex 布局形式;均衡布局

2025-05-29  本文已影响0人  可乐小子

.main-bg {
display: flex;
flex-direction: column;
height: 100vh;
background: linear-gradient(180deg, #BBD6FF 0%, #D0E4F9 6%, #E4EFFA 12%, #F6F7F8 28%, #F6F7F8 100%);
box-sizing: border-box;
}

.main {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
padding-top: 20rpx;
height: calc(100vh - headHeight -marginBottomHeight - v-bind(statusBar));
}

上一篇 下一篇

猜你喜欢

热点阅读