<view id='box'></view> view.js onShow(){ wx.createSelectorQuery().select('#box').boundingClientRect(rect=>{ console.log(rect) }).exec() } 来源:https://www.cnblogs.com/daxiansheng/p/11399496.html 标签 小程序 box rect