设置class  safe-padding

.safe-padding {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}

底部view 设置 bottom

bottom: var(--window-bottom);

 结果如图

uniapp ios 底部安全距离设置

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-01-02
相关资源
相似解决方案