会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
乌拉小考
博客园
首页
新随笔
联系
订阅
管理
2024年1月10日
Uniapp在华为P40鸿蒙4.0.0上面使用safeArea.bottom导致的错误
摘要: 使用safeArea.bottom来获取安全距离的高度会导致错误,需要使用safeAreaInsets.bottom,但是要达到和safeArea.bottom同样的效果需要使用screenHeight-safeAreaInsets.bottom计算得到和safeArea.bottom一样的值
阅读全文
posted @ 2024-01-10 09:35 乌拉小考
阅读(317)
评论(0)
推荐(0)
公告