Method list in CSSStyleDeclaration
Description
CSSStyleDeclaration
object provides
the complete control of CSS via the DOM.
The Members of the CSSStyleDeclaration Object
Member | Description | Returns |
---|---|---|
cssText | Gets or sets the text of the style. | string |
getPropertyCSSValue(name) | Gets the specified property. | CSSPrimitiveValue |
getPropertyPriority(name) | Gets the priority of the specified property. | string |
getPropertyValue(name) | Gets the specified value as a string. | string |
item(pos) | Gets the item at the specified position. | string |
length | Gets the number of items. | number |
parentRule | Gets the style rule if there is one. | CSSStyleRule |
removeProperty(name) | Removes the specified property. | string |
setProperty(name, value, priority) | Sets the value and priority for the specified property. | void |
style | Convenience property to get or set the specified CSS property. | string |