public interface CSSMediaRule extends CSSRule
CSSMediaRule
implements the CSSRule
interface.CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE, WEBKIT_KEYFRAME_RULE, WEBKIT_KEYFRAMES_RULE
Modifier and Type | Method and Description |
---|---|
void |
deleteRule(int index)
Deletes a rule from the style sheet.
|
CSSRuleList |
getCssRules()
Returns a
CSSRuleList of the CSS rules in the media rule. |
MediaList |
getMedia()
Specifies the intended destination medium for style information.
|
int |
insertRule(String rule,
int index)
Inserts a new style rule into the current style sheet.
|
getCssText, getParentRule, getParentStyleSheet, getType, setCssText
CSSRuleList getCssRules()
CSSRuleList
of the CSS rules in the media rule.MediaList getMedia()
void deleteRule(int index)
int insertRule(String rule, int index)
Copyright © 2018. All rights reserved.