UNPKG
d-utils
Version:
beta (4.0.0-beta)
latest (4.0.3)
4.0.3
4.0.2
4.0.1
4.0.0
4.0.0-beta
3.0.2
3.0.1
3.0.0
2.3.3
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.0
1.4.0
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.0.1
0.0.0
d-utils
d-utils
/
dist
/
cjs
/
computedStyle.d.ts
11 lines
(10 loc)
•
346 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** *
@description
获取元素的css属性内容 *
@param
{
HTMLElement
} el dom元素 *
@param
{
String
} cssProp css的属性名称 *
@return
{
String
} css对应的属性的值 *
@example
* computedStyle(document.body, 'width') */
declare
function
computedStyle
(
el
:
any
,
cssProp
:
string
):
void
;
export
default
computedStyle;