Compartilhar via


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
  • Properties

Methods

The IHTMLCSSMediaRule interface has these methods.

Method Description
deleteRule

Deletes a rule from the media block.

insertRule

Inserts a new rule into the media block.

 

Properties

The IHTMLCSSMediaRule interface has these properties.

Property Description

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

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch