CSSStyleSheet

Esta traducción está incompleta. Por favor, ayuda a traducir este artículo del inglés.

 

This section describes the CSSStyleSheet object, which represents a single CSS stylesheet.

A CSS stylesheet consists of CSS rules, each of them can be manipulated through its CSSRule object. The stylesheet object itself lets you examine and modify the stylesheet, including its list of rules.

You can get the list of stylesheets for a given document using the document.styleSheets property.

Properties

stylesheet.cssRules
Returns all of the CSS rules in the stylesheet as an array.
stylesheet.disabled
This property indicates whether the current stylesheet has been applied or not.
stylesheet.href
Returns the location of the stylesheet.
stylesheet.media
Specifies the intended destination medium for style information.
stylesheet.ownerNode
Returns the node that associates this style sheet with the document.
stylesheet.ownerRule
If this style sheet comes from an @import rule, the ownerRule property will contain the CSSImportRule.
stylesheet.parentStyleSheet
Returns the stylesheet that is including this one, if any.
stylesheet.title
Returns the advisory title of the current style sheet.
stylesheet.type
Specifies the style sheet language for this style sheet.

Methods

stylesheet.deleteRule
Deletes a rule from the stylesheet.
stylesheet.insertRule
Inserts a new style rule into the current style sheet.

Specification

DOM Level 2 Style Sheets: StyleSheet

DOM Level 2 CSS: CSSStyleSheet

Etiquetas y colaboradores del documento

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