接口的使用
org.w3c.dom.css.CSSStyleDeclaration
使用 CSSStyleDeclaration 的包
-
CSSStyleDeclaration 在 org.w3c.dom.css 中的用法
org.w3c.dom.css 中返回 CSSStyleDeclaration 的方法修饰符和类型方法描述ViewCSS.getComputedStyle(Element elt, String pseudoElt) 此方法用于获取 [CSS2] 中定义的计算样式。DocumentCSS.getOverrideStyle(Element elt, String pseudoElt) 此方法用于检索指定元素和指定伪元素的重写样式声明。CSSFontFaceRule.getStyle()此规则的声明块。CSSPageRule.getStyle()此规则的声明块。CSSStyleRule.getStyle()此规则集的声明块。ElementCSSInlineStyle.getStyle()样式属性。