获取微信程序 胶囊信息 menuButtonInfo 里有各种各样的基本信息
const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
拿到信息之后动态的设置元素样式 例如设置 宽高 或位置
<div style="top:{{DOMtop}}px;height:{{DOMheight}}px;border-radius: {{DOMheight}};"</div>
获取微信程序 胶囊信息 menuButtonInfo 里有各种各样的基本信息
const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
拿到信息之后动态的设置元素样式 例如设置 宽高 或位置
<div style="top:{{DOMtop}}px;height:{{DOMheight}}px;border-radius: {{DOMheight}};"</div>