-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 StringgetSelectorText()规则的页面选择器的可解析文本表示。CSSStyleDeclarationgetStyle()这个规则的声明块。voidsetSelectorText(String selectorText)规则的页面选择器的可解析文本表示。-
Methods inherited from interface org.w3c.dom.css.CSSRule
getCssText, getParentRule, getParentStyleSheet, getType, setCssText
-
-
-
-
方法详细信息
-
getSelectorText
String getSelectorText()
规则的页面选择器的可解析文本表示。
-
setSelectorText
void setSelectorText(String selectorText) throws DOMException
规则的页面选择器的可解析文本表示。- 异常
-
DOMException- SYNTAX_ERR:如果指定的CSS字符串值具有语法错误且不可DOMException。
NO_MODIFICATION_ALLOWED_ERR:如果此规则是只读的,则引发。
-
getStyle
CSSStyleDeclaration getStyle()
这个规则的声明块。
-
-