Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

s-getstyle

s5ming11ISC1.0.1

获取DOM元素样式的方法

getStyle

readme

获取dom元素样式的方法

引用

import getStyle from 's-getstyle'

使用说明

let style = getStyle(dom)   //即可获取dom的样式
style.width                 //宽度
style.height                //高度
...

很简单的方法,只为使用方便封装