uni.getWindowInfo()返回的屏幕高度包括状态栏的高度吗?
d***@163.com
- 发布:2023-06-20 10:16
- 更新:2024-11-12 10:07
- 阅读:465
3 个回复
爱豆豆 - 办法总比困难多
是的 可以返回 屏幕高度和状态栏的高度
Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序
可以的
码思泉涌 - y
用Android WebView的Demo 验证过
读取不到状态栏高度
{"windowTop":0,"windowBottom":0,"windowWidth":412,"windowHeight":833,"pixelRatio":3.5,"screenWidth":412,"screenHeight":915,"statusBarHeight":0,"safeArea":{"left":0,"right":412,"top":0,"bottom":833,"width":412,"height":833},"safeAreaInsets":{"top":0,"right":0,"bottom":0,"left":0},"screenTop":82}",