获取dom元素样式的方法 引用 import getStyle from 's-getstyle' 使用说明 let style = getStyle(dom) //即可获取dom的样式 style.width //宽度 style.height //高度 ...很简单的方法,只为使用方便封装