Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CssRule.style

 

Summary

Returns the object CSSStyleDeclaration for block declaration block of the statement of the rule.

Syntax

styleObj = cssRule .style

Instance

stilo function () {
  alert (document.styleSheets [0] .cssRules [0] .style.cssText);
}
// Displays "background-color: gray;"

Letters

The declaration block is part of the style rule in brackets and set the style definition (for the selector, the part before the brackets).

Specification

DOM Level 2 CSS: style

Etiquetas y colaboradores del documento

 Colaboradores en esta página: fscholz, arunpandianp, teoli, HenryGR
 Última actualización por: arunpandianp,