微信小程序 使用getSystemInfo获取到了手机底部安全距离 怎么全局用呢 ?-灵析社区

感觉对了

该小程序有很多页面得按钮是position fixed 定位到底部得 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250112/2f0246feadf491ccfd24acb7305a9388.png) ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250112/a67cea7610397394f4b0681e2972f5a0.png) ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250112/549bd737700355d036e4bd07809128c3.png) 我在页面最外层加了padding 安全距离高度 但是是无效的 请教行业大佬们 我该怎么全局去配置所以页面得安全距离 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250112/ad8ab01737b3a46017b0e2a9ee08f6bc.png)

阅读量:352

点赞量:8

问AI
雾里
"https://segmentfault.com/q/1010000044155673?utm_source=sf-similar-question" (https://segmentfault.com/q/1010000044155673?utm_source=sf-similar-question)