Click to Rate and Give Feedback
MSDN
MSDN Library
CSSStyleSheet Prototype

Defines the properties and methods inherited by objects in the CSSStyleSheet prototype chain.

Syntax

HTMLN/A
ScriptingCSSStyleSheet.prototype

Members Table

The following table lists the members exposed by the CSSStyleSheet Constructor object.

Attributes/Properties

AttributePropertyDescription
DISABLEDdisabled Sets or retrieves a value that indicates whether the user can interact with the object.
href Sets or retrieves the URL of the linked style sheet.
IDid Sets or retrieves the string identifying the object.
MEDIAmedia Gets or sets the media type.
owningElement Retrieves the next object in the HTML hierarchy.
parentStyleSheet Retrieves the style sheet that imported the current style sheets.
readOnly Retrieves whether the rule or style sheet is defined on the document or is imported.
TITLEtitle Sets or retrieves the title of the style sheet.
type Retrieves the Cascading Style Sheets (CSS) language in which the style sheet is written.

Collections

CollectionDescription
imports Retrieves a collection of all the imported style sheets defined for the respective styleSheet object.
pages Retrieves a collection of page objects, which represent @page rules in a styleSheet.
rules Retrieves a collection of rules defined in a style sheet.

Methods

MethodDescription
addImport Adds a style sheet to the imports collection for the specified style sheet.
addPageRule Creates a new page object for a style sheet.
addRule Creates a new rule for a style sheet.
removeImport Removes the imported style sheet from the imports collection based on ordinal position.
removeRule Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.

Styles

Style propertyDescription
cssText Gets or sets the persisted representation of the style rule.

Remarks

For more information on this and other DOM Prototypes see Document Object Model Prototypes, Part 1: Introduction.

This prototype does not derive from any objects.

Applies To

style

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker