CSSImportRule object

Represents an @import rule within a Cascading Style Sheets (CSS) style sheet.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2Internet Explorer 9

 

DOM Information

Inheritance Hierarchy

 CSSRule
   CSSImportRule

Members

The CSSImportRule object has these types of members:

Properties

The CSSImportRule object has these properties.

PropertyAccess typeDescription

cssText

Read/write

Sets or retrieves the persisted representation of the style rule.

href

Retrieves the location of the style sheet to be imported.

media

Sets or retrieves a list of media types for which this style sheet is used.

parentRule

Retrieves the containing rule, if the current rule is contained inside another rule.

parentStyleSheet

Retrieves the style sheet that contains the current rule.

styleSheet

Note  For the style element, styleSheet is no longer supported. Starting with IE11, use sheet. For info, see Compatibility changes.

Retrieves an interface pointer that provides access to the style sheet object's properties and methods.

type

Retrieves the type of the rule.

 

Standards information

See also

IHTMLCSSImportRule

 

 

Show:
© 2014 Microsoft