UNPKG
s-getstyle
Version:
latest (1.0.1)
1.0.1
1.0.0
获取DOM元素样式的方法
s-getstyle
/
Readme.md
12 lines
(11 loc)
•
280 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
# 获取dom元素样式的方法
# 引用
> import getStyle
from
's-getstyle'
# 使用说明
```
let
style = getStyle(dom)
//即可获取dom的样式
style.width
//宽度
style.height
//高度
... ``` `很简单的方法,只为使用方便封装`