wsure
wsure
  • 发布:2019-08-20 14:18
  • 更新:2020-03-31 20:11
  • 阅读:2359

QQ小程序qq.getMenuButtonBoundingClientRect()获取为空

分类:uni-app

没关系,它不给,我们可以用模拟器+真机调试自己算

先给结论

{width:80,height:30,left:e.windowWidth-12-80,right:e.windowWidth-12,top:e.statusBarHeight+10,bottom:e.statusBarHeight+10+30};

这里的e是用uni.getSystemInfo得到的。可以看到效果如下

1 关注 分享
三只小熊

要回复文章请先登录注册

三只小熊

三只小熊

不错。。给力!~~
2020-03-31 20:11