uni-app 设置定位 样式 bottom:0 后被标签栏遮挡

uni-app 设置固定定位,样式为 bottom:0 后被标签栏遮挡
在这里插入图片描述
解决办法 bottom: var(–window-bottom);

.cartBottom {
    
    
		position: fixed;
		bottom: var(--window-bottom);
		width: 100%;
		height: 106rpx;
		background: red;
	}

猜你喜欢

转载自blog.csdn.net/weixin_44640323/article/details/112661269