Export (0) Print
Expand All

CSSMediaRule object

Represents an @media 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
   CSSMediaRule

Members

The CSSMediaRule object has these types of members:

Methods

The CSSMediaRule object has these methods.

MethodDescription
deleteRule

Deletes a rule from the media block.

insertRule

Inserts a new rule into the media block.

 

Properties

The CSSMediaRule object has these properties.

PropertyAccess typeDescription

cssRules

Retrieves a list of all CSS rules contained within the parent object.

cssText

Read/write

Sets or retrieves the persisted representation of the style rule.

media

Sets or retrieves a list of media types for this rule.

parentRule

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

parentStyleSheet

Retrieves the style sheet that contains the current rule.

type

Retrieves the type of the rule.

 

Standards information

See also

IHTMLCSSMediaRule

 

 

Show:
© 2014 Microsoft