public class JsCSSMediaRule extends JsCSSRule implements CSSMediaRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE, WEBKIT_KEYFRAME_RULE, WEBKIT_KEYFRAMES_RULE
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsCSSMediaRule() |
Modifier and Type | Method and Description |
---|---|
void |
deleteRule(int index)
Deletes a rule from the style sheet.
|
JsCSSRuleList |
getCssRules()
Returns a
CSSRuleList of the CSS rules in the media rule. |
JsMediaList |
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
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCssText, getParentRule, getParentStyleSheet, getType, setCssText
intAt, length
numberAt
public final JsCSSRuleList getCssRules()
CSSMediaRule
CSSRuleList
of the CSS rules in the media rule.getCssRules
in interface CSSMediaRule
public final JsMediaList getMedia()
CSSMediaRule
getMedia
in interface CSSMediaRule
public final void deleteRule(int index)
CSSMediaRule
deleteRule
in interface CSSMediaRule
public final int insertRule(String rule, int index)
CSSMediaRule
insertRule
in interface CSSMediaRule
Copyright © 2016. All rights reserved.