Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|---|---|
Retrieves a list of all CSS rules contained within the parent object. |
|
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 |