Export (0) Print
Expand All

IHTMLCSSMediaRule interface

This interface represents an @media rule in a Cascading Style Sheets (CSS) style sheet. An @media rule can be used to delimit style rules for specific media types.

Members

The IHTMLCSSMediaRule interface inherits from the IDispatch interface. IHTMLCSSMediaRule also has these types of members:

Methods

The IHTMLCSSMediaRule interface has these methods.

MethodDescription
deleteRule

Deletes a rule from the media block.

insertRule

Inserts a new rule into the media block.

 

Properties

The IHTMLCSSMediaRule interface has these properties.

PropertyDescription

cssRules

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

media

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

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft