右上角胶囊的信息,包含width、height、top等
let rect= wx.getMenuButtonBoundingClientRect();
 
机型信息
let info=wx.getSystemInfoSync();
 
胶囊底部到手机最上面的距离
rect.bottom
 
胶囊三个点到屏幕右边的距离
info.screenWidth-rect.right+ rect.width*3/4+5

相关文章:

  • 2022-01-07
  • 2021-11-22
  • 2021-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案