// app.wxss
page {
...
--ios-safe-bottom-low: constant(safe-area-inset-bottom); /* 兼容 iOS<11.2 */
--ios-safe-bottom-higt: env(safe-area-inset-bottom); /* 兼容iOS>= 11.2 */
}
/* 防止苹果手机底部小黑条遮挡,全局类名 */
.ios-safe-bottom {
padding-bottom: var(--ios-safe-bottom-low);
padding-bottom: var(--ios-safe-bottom-higt);
}
...
Adaptation of the safe area (small black bar at the bottom) of the iPhone bottom of the WeChat applet
Guess you like
Origin blog.csdn.net/qq_40230735/article/details/130293377
Recommended
Ranking