/*改变底部位置+并且给底部增加圆桶背景*/
:root {
--safe-area-inset-bottom: constant(safe-area-inset-bottom);
--safe-area-inset-bottom: env(safe-area-inset-bottom);
}
.fixed-bottom-bar{
padding-bottom: constant(safe-area-inset-bottom)!important;
padding-bottom: env(safe-area-inset-bottom)!important;
}
.fixed-bottom-bar-inner{
bottom: constant(safe-area-inset-bottom)!important;
bottom: env(safe-area-inset-bottom)!important;
}
.fixed-bottom-bar-inner::after{
position: fixed;
content: "";
left: 0;
bottom: 0;
height: constant(safe-area-inset-bottom)!important;
height: env(safe-area-inset-bottom)!important;
width: 100%;
z-index: 90;
background-color: #fff;
}
iphoneX适配
最新推荐文章于 2024-09-11 20:31:47 发布