The CSSStyleDeclaration Object
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });
The CSSStyleDeclaration Object
❮ Previous
Next ❯
CSSStyleDeclaration Object
The CSSStyleDeclaration object represents a collection of CSS property-value
pairs.
CSSStyleDeclaration Object Properties
Property | Description |
---|---|
cssText | Returns a text representation of the declaration block |
length | Returns the number of properties |
parentRule | Returns the containing CssRule |
CSSStyleDeclaration Object Methods
Method | Description |
---|---|
getPropertyPriority(property) | Gets whether or not the property has the "important" priority |
getPropertyValue(property) | Gets the property value |
item(index) | Gets the property name |
removeProperty(property) | Remove a property from the object |
setProperty(property, value, priority) | Set a CSS property for an element |
❮ Previous
Next ❯