Module jdk.xml.dom
Package org.w3c.dom.css

Interface CSS2Properties


public interface CSS2Properties
CSS2Properties接口表示在CSSStyleDeclaration内检索和设置属性的便利机制。该接口的属性对应于CSS2中指定的所有属性。获取此接口的属性等同于调用CSSStyleDeclaration接口的getPropertyValue方法。设置此接口的属性等同于调用CSSStyleDeclaration接口的setProperty方法。

CSS模块的符合实现不需要实现CSS2Properties接口。如果实现实现了此接口,则期望可以使用特定于语言的方法将CSSStyleDeclaration接口的实例转换为CSS2Properties接口。

如果实现实现了此接口,则期望理解简写属性的特定语法,并应用其语义;例如,当设置margin属性时,实际上是由底层实现设置了marginTopmarginRightmarginBottommarginLeft属性。

处理CSS“简写”属性时,应适当地将简写属性分解为其组件长手属性,并在查询其值时,返回的形式应该是与规则集中声明的完全等效的最短形式。但是,如果没有简写声明可以添加到规则集中而不改变规则集中已经声明的规则(即通过添加以前未在规则集中声明的长手规则),则应为简写属性返回空字符串。

例如,查询font属性不应返回“normal normal normal 14pt/normal Arial, sans-serif”,而应返回“14pt Arial, sans-serif”即可。 (normals是初始值,并且通过使用长手属性隐含)。

如果组成特定字符串的所有长手属性的值都是初始值,则应返回一个由所有初始值组成的字符串(例如,“medium”边框宽度值应返回为“medium”,而不是“”)。

对于一些接受来自其他方向的缺失值的简写属性,例如marginpaddingborder-[width|style|color]属性,应使用可能的最少边数;即“0px 10px”将返回,而不是“0px 10px 0px 10px”。

如果简写属性的值无法分解为其组件长手属性,如具有值“menu”的font属性的情况,查询组件长手属性的值应返回空字符串。

另请参阅文档对象模型(DOM)2级样式规范

自从:
1.4, DOM 2级
  • Method Details Link icon

    • getAzimuth Link icon

      String getAzimuth()
      查看CSS2中azimuth属性的定义。
    • setAzimuth Link icon

      void setAzimuth(String azimuth) throws DOMException
      查看CSS2中azimuth属性的定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发此异常。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发此异常。
    • getBackground Link icon

      String getBackground()
      查看CSS2中background属性的定义。
    • setBackground Link icon

      void setBackground(String background) throws DOMException
      查看CSS2中background属性的定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发此异常。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发此异常。
    • getBackgroundAttachment Link icon

      String getBackgroundAttachment()
      查看CSS2中background-attachment属性的定义。
    • setBackgroundAttachment Link icon

      void setBackgroundAttachment(String backgroundAttachment) throws DOMException
      查看CSS2中background-attachment属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBackgroundColor Link icon

      String getBackgroundColor()
      查看CSS2中background-color属性的定义。
    • setBackgroundColor Link icon

      void setBackgroundColor(String backgroundColor) throws DOMException
      查看CSS2中background-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBackgroundImage Link icon

      String getBackgroundImage()
      查看CSS2中background-image属性的定义。
    • setBackgroundImage Link icon

      void setBackgroundImage(String backgroundImage) throws DOMException
      查看CSS2中background-image属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBackgroundPosition Link icon

      String getBackgroundPosition()
      查看CSS2中background-position属性的定义。
    • setBackgroundPosition Link icon

      void setBackgroundPosition(String backgroundPosition) throws DOMException
      查看CSS2中background-position属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBackgroundRepeat Link icon

      String getBackgroundRepeat()
      查看CSS2中background-repeat属性的定义。
    • setBackgroundRepeat Link icon

      void setBackgroundRepeat(String backgroundRepeat) throws DOMException
      查看CSS2中background-repeat属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorder Link icon

      String getBorder()
      查看CSS2中border属性的定义。
    • setBorder Link icon

      void setBorder(String border) throws DOMException
      查看CSS2中border属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderCollapse Link icon

      String getBorderCollapse()
      查看CSS2中border-collapse属性的定义。
    • setBorderCollapse Link icon

      void setBorderCollapse(String borderCollapse) throws DOMException
      查看CSS2中border-collapse属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderColor Link icon

      String getBorderColor()
      查看CSS2中border-color属性的定义。
    • setBorderColor Link icon

      void setBorderColor(String borderColor) throws DOMException
      查看CSS2中border-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderSpacing Link icon

      String getBorderSpacing()
      查看CSS2中border-spacing属性的定义。
    • setBorderSpacing Link icon

      void setBorderSpacing(String borderSpacing) throws DOMException
      查看CSS2中border-spacing属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderStyle Link icon

      String getBorderStyle()
      查看CSS2中border-style属性的定义。
    • setBorderStyle Link icon

      void setBorderStyle(String borderStyle) throws DOMException
      查看CSS2中border-style属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderTop Link icon

      String getBorderTop()
      查看CSS2中border-top属性的定义。
    • setBorderTop Link icon

      void setBorderTop(String borderTop) throws DOMException
      查看CSS2中border-top属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderRight Link icon

      String getBorderRight()
      查看CSS2中border-right属性的定义。
    • setBorderRight Link icon

      void setBorderRight(String borderRight) throws DOMException
      查看CSS2中border-right属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderBottom Link icon

      String getBorderBottom()
      查看CSS2中border-bottom属性的定义。
    • setBorderBottom Link icon

      void setBorderBottom(String borderBottom) throws DOMException
      查看CSS2中border-bottom属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderLeft Link icon

      String getBorderLeft()
      查看CSS2中border-left属性的定义。
    • setBorderLeft Link icon

      void setBorderLeft(String borderLeft) throws DOMException
      查看CSS2中border-left属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderTopColor Link icon

      String getBorderTopColor()
      查看CSS2中border-top-color属性的定义。
    • setBorderTopColor Link icon

      void setBorderTopColor(String borderTopColor) throws DOMException
      查看CSS2中border-top-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderRightColor Link icon

      String getBorderRightColor()
      查看CSS2中border-right-color属性的定义。
    • setBorderRightColor Link icon

      void setBorderRightColor(String borderRightColor) throws DOMException
      查看CSS2中border-right-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderBottomColor Link icon

      String getBorderBottomColor()
      查看CSS2中border-bottom-color属性的定义。
    • setBorderBottomColor Link icon

      void setBorderBottomColor(String borderBottomColor) throws DOMException
      查看CSS2中border-bottom-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderLeftColor Link icon

      String getBorderLeftColor()
      查看CSS2中border-left-color属性的定义。
    • setBorderLeftColor Link icon

      void setBorderLeftColor(String borderLeftColor) throws DOMException
      查看CSS2中border-left-color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderTopStyle Link icon

      String getBorderTopStyle()
      查看CSS2中border-top-style属性的定义。
    • setBorderTopStyle Link icon

      void setBorderTopStyle(String borderTopStyle) throws DOMException
      查看CSS2中border-top-style属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderRightStyle Link icon

      String getBorderRightStyle()
      查看CSS2中border-right-style属性的定义。
    • setBorderRightStyle Link icon

      void setBorderRightStyle(String borderRightStyle) throws DOMException
      查看CSS2中border-right-style属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderBottomStyle Link icon

      String getBorderBottomStyle()
      查看CSS2中border-bottom-style属性的定义。
    • setBorderBottomStyle Link icon

      void setBorderBottomStyle(String borderBottomStyle) throws DOMException
      查看CSS2中border-bottom-style属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderLeftStyle Link icon

      String getBorderLeftStyle()
      查看CSS2中border-left-style属性的定义。
    • setBorderLeftStyle Link icon

      void setBorderLeftStyle(String borderLeftStyle) throws DOMException
      查看CSS2中border-left-style属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderTopWidth Link icon

      String getBorderTopWidth()
      查看CSS2中border-top-width属性的定义。
    • setBorderTopWidth Link icon

      void setBorderTopWidth(String borderTopWidth) throws DOMException
      查看CSS2中border-top-width属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderRightWidth Link icon

      String getBorderRightWidth()
      查看CSS2中border-right-width属性的定义。
    • setBorderRightWidth Link icon

      void setBorderRightWidth(String borderRightWidth) throws DOMException
      查看CSS2中border-right-width属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderBottomWidth Link icon

      String getBorderBottomWidth()
      请参见CSS2中border-bottom-width属性的定义。
    • setBorderBottomWidth Link icon

      void setBorderBottomWidth(String borderBottomWidth) throws DOMException
      请参见CSS2中border-bottom-width属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderLeftWidth Link icon

      String getBorderLeftWidth()
      请参见CSS2中border-left-width属性的定义。
    • setBorderLeftWidth Link icon

      void setBorderLeftWidth(String borderLeftWidth) throws DOMException
      请参见CSS2中border-left-width属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBorderWidth Link icon

      String getBorderWidth()
      请参见CSS2中border-width属性的定义。
    • setBorderWidth Link icon

      void setBorderWidth(String borderWidth) throws DOMException
      请参见CSS2中border-width属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getBottom Link icon

      String getBottom()
      请参见CSS2中bottom属性的定义。
    • setBottom Link icon

      void setBottom(String bottom) throws DOMException
      请参见CSS2中bottom属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCaptionSide Link icon

      String getCaptionSide()
      请参见CSS2中caption-side属性的定义。
    • setCaptionSide Link icon

      void setCaptionSide(String captionSide) throws DOMException
      请参见CSS2中caption-side属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getClear Link icon

      String getClear()
      请参见CSS2中clear属性的定义。
    • setClear Link icon

      void setClear(String clear) throws DOMException
      请参见CSS2中clear属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getClip Link icon

      String getClip()
      请参见CSS2中clip属性的定义。
    • setClip Link icon

      void setClip(String clip) throws DOMException
      请参见CSS2中clip属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getColor Link icon

      String getColor()
      请参见CSS2中color属性的定义。
    • setColor Link icon

      void setColor(String color) throws DOMException
      请参见CSS2中color属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getContent Link icon

      String getContent()
      请参见CSS2中content属性的定义。
    • setContent Link icon

      void setContent(String content) throws DOMException
      请参见CSS2中content属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCounterIncrement Link icon

      String getCounterIncrement()
      请参见CSS2中counter-increment属性的定义。
    • setCounterIncrement Link icon

      void setCounterIncrement(String counterIncrement) throws DOMException
      请参见CSS2中counter-increment属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCounterReset Link icon

      String getCounterReset()
      请参见CSS2中counter-reset属性的定义。
    • setCounterReset Link icon

      void setCounterReset(String counterReset) throws DOMException
      请参见CSS2中counter-reset属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCue Link icon

      String getCue()
      请参见CSS2中cue属性的定义。
    • setCue Link icon

      void setCue(String cue) throws DOMException
      请参见CSS2中cue属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCueAfter Link icon

      String getCueAfter()
      请参见CSS2中cue-after属性的定义。
    • setCueAfter Link icon

      void setCueAfter(String cueAfter) throws DOMException
      请参见CSS2中cue-after属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCueBefore Link icon

      String getCueBefore()
      请参见CSS2中cue-before属性的定义。
    • setCueBefore Link icon

      void setCueBefore(String cueBefore) throws DOMException
      请参见CSS2中cue-before属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCursor Link icon

      String getCursor()
      请参见CSS2中cursor属性的定义。
    • setCursor Link icon

      void setCursor(String cursor) throws DOMException
      请参见CSS2中cursor属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getDirection Link icon

      String getDirection()
      请参见CSS2中direction属性的定义。
    • setDirection Link icon

      void setDirection(String direction) throws DOMException
      请参见CSS2中direction属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getDisplay Link icon

      String getDisplay()
      请参见CSS2中display属性的定义。
    • setDisplay Link icon

      void setDisplay(String display) throws DOMException
      请参见CSS2中display属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getElevation Link icon

      String getElevation()
      请参见CSS2中elevation属性的定义。
    • setElevation Link icon

      void setElevation(String elevation) throws DOMException
      请参见CSS2中elevation属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getEmptyCells Link icon

      String getEmptyCells()
      请参见CSS2中empty-cells属性的定义。
    • setEmptyCells Link icon

      void setEmptyCells(String emptyCells) throws DOMException
      请参见CSS2中empty-cells属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getCssFloat Link icon

      String getCssFloat()
      请参见CSS2中float属性的定义。
    • setCssFloat Link icon

      void setCssFloat(String cssFloat) throws DOMException
      请参见CSS2中float属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFont Link icon

      String getFont()
      请参见CSS2中font属性的定义。
    • setFont Link icon

      void setFont(String font) throws DOMException
      请参见CSS2中font属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontFamily Link icon

      String getFontFamily()
      请参见CSS2中font-family属性的定义。
    • setFontFamily Link icon

      void setFontFamily(String fontFamily) throws DOMException
      请参见CSS2中font-family属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontSize Link icon

      String getFontSize()
      请参见CSS2中font-size属性的定义。
    • setFontSize Link icon

      void setFontSize(String fontSize) throws DOMException
      请参见CSS2中font-size属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontSizeAdjust Link icon

      String getFontSizeAdjust()
      请参见CSS2中font-size-adjust属性的定义。
    • setFontSizeAdjust Link icon

      void setFontSizeAdjust(String fontSizeAdjust) throws DOMException
      请参见CSS2中font-size-adjust属性的定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontStretch Link icon

      String getFontStretch()
      请参见CSS2中的font-stretch属性定义。
    • setFontStretch Link icon

      void setFontStretch(String fontStretch) throws DOMException
      请参见CSS2中的font-stretch属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontStyle Link icon

      String getFontStyle()
      请参见CSS2中的font-style属性定义。
    • setFontStyle Link icon

      void setFontStyle(String fontStyle) throws DOMException
      请参见CSS2中的font-style属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontVariant Link icon

      String getFontVariant()
      请参见CSS2中的font-variant属性定义。
    • setFontVariant Link icon

      void setFontVariant(String fontVariant) throws DOMException
      请参见CSS2中的font-variant属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getFontWeight Link icon

      String getFontWeight()
      请参见CSS2中的font-weight属性定义。
    • setFontWeight Link icon

      void setFontWeight(String fontWeight) throws DOMException
      请参见CSS2中的font-weight属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getHeight Link icon

      String getHeight()
      请参见CSS2中的height属性定义。
    • setHeight Link icon

      void setHeight(String height) throws DOMException
      请参见CSS2中的height属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getLeft Link icon

      String getLeft()
      请参见CSS2中的left属性定义。
    • setLeft Link icon

      void setLeft(String left) throws DOMException
      请参见CSS2中的left属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getLetterSpacing Link icon

      String getLetterSpacing()
      请参见CSS2中的letter-spacing属性定义。
    • setLetterSpacing Link icon

      void setLetterSpacing(String letterSpacing) throws DOMException
      请参见CSS2中的letter-spacing属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getLineHeight Link icon

      String getLineHeight()
      请参见CSS2中的line-height属性定义。
    • setLineHeight Link icon

      void setLineHeight(String lineHeight) throws DOMException
      请参见CSS2中的line-height属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getListStyle Link icon

      String getListStyle()
      请参见CSS2中的list-style属性定义。
    • setListStyle Link icon

      void setListStyle(String listStyle) throws DOMException
      请参见CSS2中的list-style属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getListStyleImage Link icon

      String getListStyleImage()
      请参见CSS2中的list-style-image属性定义。
    • setListStyleImage Link icon

      void setListStyleImage(String listStyleImage) throws DOMException
      请参见CSS2中的list-style-image属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getListStylePosition Link icon

      String getListStylePosition()
      请参见CSS2中的list-style-position属性定义。
    • setListStylePosition Link icon

      void setListStylePosition(String listStylePosition) throws DOMException
      请参见CSS2中的list-style-position属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getListStyleType Link icon

      String getListStyleType()
      请参见CSS2中的list-style-type属性定义。
    • setListStyleType Link icon

      void setListStyleType(String listStyleType) throws DOMException
      请参见CSS2中的list-style-type属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMargin Link icon

      String getMargin()
      请参见CSS2中的margin属性定义。
    • setMargin Link icon

      void setMargin(String margin) throws DOMException
      请参见CSS2中的margin属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarginTop Link icon

      String getMarginTop()
      请参见CSS2中的margin-top属性定义。
    • setMarginTop Link icon

      void setMarginTop(String marginTop) throws DOMException
      请参见CSS2中的margin-top属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarginRight Link icon

      String getMarginRight()
      请参见CSS2中的margin-right属性定义。
    • setMarginRight Link icon

      void setMarginRight(String marginRight) throws DOMException
      请参见CSS2中的margin-right属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarginBottom Link icon

      String getMarginBottom()
      请参见CSS2中的margin-bottom属性定义。
    • setMarginBottom Link icon

      void setMarginBottom(String marginBottom) throws DOMException
      请参见CSS2中的margin-bottom属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarginLeft Link icon

      String getMarginLeft()
      请参见CSS2中的margin-left属性定义。
    • setMarginLeft Link icon

      void setMarginLeft(String marginLeft) throws DOMException
      请参见CSS2中的margin-left属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarkerOffset Link icon

      String getMarkerOffset()
      请参见CSS2中的marker-offset属性定义。
    • setMarkerOffset Link icon

      void setMarkerOffset(String markerOffset) throws DOMException
      请参见CSS2中的marker-offset属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMarks Link icon

      String getMarks()
      请参见CSS2中的marks属性定义。
    • setMarks Link icon

      void setMarks(String marks) throws DOMException
      请参见CSS2中的marks属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMaxHeight Link icon

      String getMaxHeight()
      请参见CSS2中的max-height属性定义。
    • setMaxHeight Link icon

      void setMaxHeight(String maxHeight) throws DOMException
      请参见CSS2中的max-height属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMaxWidth Link icon

      String getMaxWidth()
      请参见CSS2中的max-width属性定义。
    • setMaxWidth Link icon

      void setMaxWidth(String maxWidth) throws DOMException
      请参见CSS2中的max-width属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMinHeight Link icon

      String getMinHeight()
      请参见CSS2中的min-height属性定义。
    • setMinHeight Link icon

      void setMinHeight(String minHeight) throws DOMException
      请参见CSS2中的min-height属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getMinWidth Link icon

      String getMinWidth()
      请参见CSS2中的min-width属性定义。
    • setMinWidth Link icon

      void setMinWidth(String minWidth) throws DOMException
      请参见CSS2中的min-width属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOrphans Link icon

      String getOrphans()
      请参见CSS2中的orphans属性定义。
    • setOrphans Link icon

      void setOrphans(String orphans) throws DOMException
      请参见CSS2中的orphans属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOutline Link icon

      String getOutline()
      查看CSS2中的轮廓属性定义。
    • setOutline Link icon

      void setOutline(String outline) throws DOMException
      查看CSS2中的轮廓属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOutlineColor Link icon

      String getOutlineColor()
      查看CSS2中的轮廓颜色属性定义。
    • setOutlineColor Link icon

      void setOutlineColor(String outlineColor) throws DOMException
      查看CSS2中的轮廓颜色属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOutlineStyle Link icon

      String getOutlineStyle()
      查看CSS2中的轮廓样式属性定义。
    • setOutlineStyle Link icon

      void setOutlineStyle(String outlineStyle) throws DOMException
      查看CSS2中的轮廓样式属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOutlineWidth Link icon

      String getOutlineWidth()
      查看CSS2中的轮廓宽度属性定义。
    • setOutlineWidth Link icon

      void setOutlineWidth(String outlineWidth) throws DOMException
      查看CSS2中的轮廓宽度属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getOverflow Link icon

      String getOverflow()
      查看CSS2中的溢出属性定义。
    • setOverflow Link icon

      void setOverflow(String overflow) throws DOMException
      查看CSS2中的溢出属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPadding Link icon

      String getPadding()
      查看CSS2中的填充属性定义。
    • setPadding Link icon

      void setPadding(String padding) throws DOMException
      查看CSS2中的填充属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPaddingTop Link icon

      String getPaddingTop()
      查看CSS2中的上填充属性定义。
    • setPaddingTop Link icon

      void setPaddingTop(String paddingTop) throws DOMException
      查看CSS2中的上填充属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPaddingRight Link icon

      String getPaddingRight()
      查看CSS2中的右填充属性定义。
    • setPaddingRight Link icon

      void setPaddingRight(String paddingRight) throws DOMException
      查看CSS2中的右填充属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPaddingBottom Link icon

      String getPaddingBottom()
      查看CSS2中的下填充属性定义。
    • setPaddingBottom Link icon

      void setPaddingBottom(String paddingBottom) throws DOMException
      查看CSS2中的下填充属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPaddingLeft Link icon

      String getPaddingLeft()
      查看CSS2中的左填充属性定义。
    • setPaddingLeft Link icon

      void setPaddingLeft(String paddingLeft) throws DOMException
      查看CSS2中的左填充属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPage Link icon

      String getPage()
      查看CSS2中的页面属性定义。
    • setPage Link icon

      void setPage(String page) throws DOMException
      查看CSS2中的页面属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPageBreakAfter Link icon

      String getPageBreakAfter()
      查看CSS2中的分页后属性定义。
    • setPageBreakAfter Link icon

      void setPageBreakAfter(String pageBreakAfter) throws DOMException
      查看CSS2中的分页后属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPageBreakBefore Link icon

      String getPageBreakBefore()
      查看CSS2中的分页前属性定义。
    • setPageBreakBefore Link icon

      void setPageBreakBefore(String pageBreakBefore) throws DOMException
      查看CSS2中的分页前属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPageBreakInside Link icon

      String getPageBreakInside()
      查看CSS2中的分页内部属性定义。
    • setPageBreakInside Link icon

      void setPageBreakInside(String pageBreakInside) throws DOMException
      查看CSS2中的分页内部属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPause Link icon

      String getPause()
      查看CSS2中的暂停属性定义。
    • setPause Link icon

      void setPause(String pause) throws DOMException
      查看CSS2中的暂停属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPauseAfter Link icon

      String getPauseAfter()
      查看CSS2中的之后暂停属性定义。
    • setPauseAfter Link icon

      void setPauseAfter(String pauseAfter) throws DOMException
      查看CSS2中的之后暂停属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPauseBefore Link icon

      String getPauseBefore()
      查看CSS2中的之前暂停属性定义。
    • setPauseBefore Link icon

      void setPauseBefore(String pauseBefore) throws DOMException
      查看CSS2中的之前暂停属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPitch Link icon

      String getPitch()
      查看CSS2中的音高属性定义。
    • setPitch Link icon

      void setPitch(String pitch) throws DOMException
      查看CSS2中的音高属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPitchRange Link icon

      String getPitchRange()
      查看CSS2中的音高范围属性定义。
    • setPitchRange Link icon

      void setPitchRange(String pitchRange) throws DOMException
      查看CSS2中的音高范围属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPlayDuring Link icon

      String getPlayDuring()
      查看CSS2中的播放期间属性定义。
    • setPlayDuring Link icon

      void setPlayDuring(String playDuring) throws DOMException
      查看CSS2中的播放期间属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getPosition Link icon

      String getPosition()
      查看CSS2中的位置属性定义。
    • setPosition Link icon

      void setPosition(String position) throws DOMException
      查看CSS2中的位置属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getQuotes Link icon

      String getQuotes()
      查看CSS2中的引号属性定义。
    • setQuotes Link icon

      void setQuotes(String quotes) throws DOMException
      查看CSS2中的引号属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getRichness Link icon

      String getRichness()
      查看CSS2中的丰富度属性定义。
    • setRichness Link icon

      void setRichness(String richness) throws DOMException
      查看CSS2中的丰富度属性定义。
      抛出:
      DOMException - SYNTAX_ERR:如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR:如果此属性是只读的,则引发。
    • getRight Link icon

      String getRight()
      查看CSS2中的右侧属性定义。
    • setRight Link icon

      void setRight(String right) throws DOMException
      查看CSS2中的右侧属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSize Link icon

      String getSize()
      查看CSS2中的size属性定义。
    • setSize Link icon

      void setSize(String size) throws DOMException
      查看CSS2中的size属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSpeak Link icon

      String getSpeak()
      查看CSS2中的speak属性定义。
    • setSpeak Link icon

      void setSpeak(String speak) throws DOMException
      查看CSS2中的speak属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSpeakHeader Link icon

      String getSpeakHeader()
      查看CSS2中的speak-header属性定义。
    • setSpeakHeader Link icon

      void setSpeakHeader(String speakHeader) throws DOMException
      查看CSS2中的speak-header属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSpeakNumeral Link icon

      String getSpeakNumeral()
      查看CSS2中的speak-numeral属性定义。
    • setSpeakNumeral Link icon

      void setSpeakNumeral(String speakNumeral) throws DOMException
      查看CSS2中的speak-numeral属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSpeakPunctuation Link icon

      String getSpeakPunctuation()
      查看CSS2中的speak-punctuation属性定义。
    • setSpeakPunctuation Link icon

      void setSpeakPunctuation(String speakPunctuation) throws DOMException
      查看CSS2中的speak-punctuation属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getSpeechRate Link icon

      String getSpeechRate()
      查看CSS2中的speech-rate属性定义。
    • setSpeechRate Link icon

      void setSpeechRate(String speechRate) throws DOMException
      查看CSS2中的speech-rate属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getStress Link icon

      String getStress()
      查看CSS2中的stress属性定义。
    • setStress Link icon

      void setStress(String stress) throws DOMException
      查看CSS2中的stress属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTableLayout Link icon

      String getTableLayout()
      查看CSS2中的table-layout属性定义。
    • setTableLayout Link icon

      void setTableLayout(String tableLayout) throws DOMException
      查看CSS2中的table-layout属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTextAlign Link icon

      String getTextAlign()
      查看CSS2中的text-align属性定义。
    • setTextAlign Link icon

      void setTextAlign(String textAlign) throws DOMException
      查看CSS2中的text-align属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTextDecoration Link icon

      String getTextDecoration()
      查看CSS2中的text-decoration属性定义。
    • setTextDecoration Link icon

      void setTextDecoration(String textDecoration) throws DOMException
      查看CSS2中的text-decoration属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTextIndent Link icon

      String getTextIndent()
      查看CSS2中的text-indent属性定义。
    • setTextIndent Link icon

      void setTextIndent(String textIndent) throws DOMException
      查看CSS2中的text-indent属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTextShadow Link icon

      String getTextShadow()
      查看CSS2中的text-shadow属性定义。
    • setTextShadow Link icon

      void setTextShadow(String textShadow) throws DOMException
      查看CSS2中的text-shadow属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTextTransform Link icon

      String getTextTransform()
      查看CSS2中的text-transform属性定义。
    • setTextTransform Link icon

      void setTextTransform(String textTransform) throws DOMException
      查看CSS2中的text-transform属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getTop Link icon

      String getTop()
      查看CSS2中的top属性定义。
    • setTop Link icon

      void setTop(String top) throws DOMException
      查看CSS2中的top属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getUnicodeBidi Link icon

      String getUnicodeBidi()
      查看CSS2中的unicode-bidi属性定义。
    • setUnicodeBidi Link icon

      void setUnicodeBidi(String unicodeBidi) throws DOMException
      查看CSS2中的unicode-bidi属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getVerticalAlign Link icon

      String getVerticalAlign()
      查看CSS2中的vertical-align属性定义。
    • setVerticalAlign Link icon

      void setVerticalAlign(String verticalAlign) throws DOMException
      查看CSS2中的vertical-align属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getVisibility Link icon

      String getVisibility()
      查看CSS2中的visibility属性定义。
    • setVisibility Link icon

      void setVisibility(String visibility) throws DOMException
      查看CSS2中的visibility属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getVoiceFamily Link icon

      String getVoiceFamily()
      查看CSS2中的voice-family属性定义。
    • setVoiceFamily Link icon

      void setVoiceFamily(String voiceFamily) throws DOMException
      查看CSS2中的voice-family属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getVolume Link icon

      String getVolume()
      查看CSS2中的volume属性定义。
    • setVolume Link icon

      void setVolume(String volume) throws DOMException
      查看CSS2中的volume属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getWhiteSpace Link icon

      String getWhiteSpace()
      查看CSS2中的white-space属性定义。
    • setWhiteSpace Link icon

      void setWhiteSpace(String whiteSpace) throws DOMException
      查看CSS2中的white-space属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getWidows Link icon

      String getWidows()
      查看CSS2中的widows属性定义。
    • setWidows Link icon

      void setWidows(String widows) throws DOMException
      查看CSS2中的widows属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getWidth Link icon

      String getWidth()
      查看CSS2中的width属性定义。
    • setWidth Link icon

      void setWidth(String width) throws DOMException
      查看CSS2中的width属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getWordSpacing Link icon

      String getWordSpacing()
      查看CSS2中的word-spacing属性定义。
    • setWordSpacing Link icon

      void setWordSpacing(String wordSpacing) throws DOMException
      查看CSS2中的word-spacing属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发。
    • getZIndex Link icon

      String getZIndex()
      查看CSS2中的z-index属性定义。
    • setZIndex Link icon

      void setZIndex(String zIndex) throws DOMException
      查看CSS2中的z-index属性定义。
      抛出:
      DOMException - SYNTAX_ERR: 如果新值存在语法错误且无法解析,则引发此异常。
      NO_MODIFICATION_ALLOWED_ERR: 如果此属性是只读的,则引发此异常。