CSSStyleDeclaration Object _
CSSStyleDeclaration Object
CSSStyleDeclaration ऑब्जेक्ट CSS संपत्ति-मूल्य जोड़े के संग्रह का प्रतिनिधित्व करता है।
CSSStyleDeclaration ऑब्जेक्ट गुण
Property |
Description |
cssText |
Sets or returns the textual representation of a CSS declaration block |
length |
Returns the number of style declarations in a CSS declaration block |
parentRule |
Returns a CSS rule that is the parent of the style
block |
CSSStyleDeclaration ऑब्जेक्ट मेथड्स
Method |
Description |
getPropertyPriority() |
Returns whether or not the specified CSS property has the "important!" priority
set |
getPropertyValue() |
Returns the value of the specified CSS property |
item() |
Returns the CSS property name from a CSS declaration block, by index |
removeProperty() |
Removes a CSS property from a CSS declaration block |
setProperty() |
Sets a new or modifies an existing CSS property in a CSS declaration block |