怎么获取顶部导航栏高度?
发布于 5 年前 作者 kyi 4433 次浏览 来自 问答

怎么获取顶部导航栏高度?或者怎么计算?

在非tabbar页面只有导航栏没有底部tabbar,这个时候的窗口高度就不等于systemInfo里的窗口高度了,这个时候怎么计算窗口高度

1 回复

wx.getSystemInfo(Object object) | 微信开放文档

https://developers.weixin.qq.com/miniprogram/dev/api/base/system/system-info/wx.getSystemInfo.html

statusBarHeight

你是说的这个吗?

回到顶部