<view style="height: 140rpx;"></view>
<view class="btn" bind:tap="confirmBtn">进入社区</view>
.btn{
width: 750rpx;
height: 104rpx;
background: #1158b5;
text-align: center;
line-height: 104rpx;
color: #FFF;
position: fixed;
bottom: 0;
/* bottom: calc(env(safe-area-inset-bottom)); */
bottom: calc(constant(safe-area-inset-bottom) /2);
padding-bottom: calc(env(safe-area-inset-bottom) /2);
box-sizing: content-box;
}
微信小程序底部固定 ios底部垫高 安卓不需要
最新推荐文章于 2024-06-14 16:57:03 发布