Methods
(static) getStyle(el, proptName) → {String}
Get the computed style for an element's style property
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | |
proptName |
String | CSS property name |
Returns:
- Type
- String
(static) setStyle(el, proptName, proptVal)
Set an element's style
Parameters:
Name | Type | Description |
---|---|---|
el |
HTMLElement | |
proptName |
String | CSS property name |
proptVal |
String | CSS property value |