public interface CSSStyleDeclaration
Modifier and Type | Interface and Description |
---|---|
static interface |
CSSStyleDeclaration.BorderStyle |
static interface |
CSSStyleDeclaration.Cursor |
static interface |
CSSStyleDeclaration.Display |
static interface |
CSSStyleDeclaration.FontStyle |
static interface |
CSSStyleDeclaration.FontWeight |
static interface |
CSSStyleDeclaration.ListStyleType |
static interface |
CSSStyleDeclaration.Overflow |
static interface |
CSSStyleDeclaration.OverflowX |
static interface |
CSSStyleDeclaration.OverflowY |
static interface |
CSSStyleDeclaration.Position |
static interface |
CSSStyleDeclaration.TextDecoration |
static interface |
CSSStyleDeclaration.Unit |
static interface |
CSSStyleDeclaration.Visibility |
static interface |
CSSStyleDeclaration.WhiteSpace |
Modifier and Type | Method and Description |
---|---|
void |
clearBackgroundColor() |
void |
clearBackgroundImage() |
void |
clearBorderColor() |
void |
clearBorderStyle() |
void |
clearBorderWidth() |
void |
clearBottom() |
void |
clearColor() |
void |
clearCursor() |
void |
clearDisplay() |
void |
clearFontSize() |
void |
clearFontStyle() |
void |
clearFontWeight() |
void |
clearHeight() |
void |
clearLeft() |
void |
clearListStyleType() |
void |
clearMargin() |
void |
clearMarginBottom() |
void |
clearMarginLeft() |
void |
clearMarginRight() |
void |
clearMarginTop() |
void |
clearOpacity() |
void |
clearOverflow() |
void |
clearOverflowX() |
void |
clearOverflowY() |
void |
clearPadding() |
void |
clearPaddingBottom() |
void |
clearPaddingLeft() |
void |
clearPaddingRight() |
void |
clearPaddingTop() |
void |
clearPosition() |
void |
clearRight() |
void |
clearTextDecoration() |
void |
clearTop() |
void |
clearVisibility() |
void |
clearWhiteSpace() |
void |
clearWidth() |
void |
clearZIndex() |
String |
getBackgroundColor() |
String |
getBackgroundImage() |
String |
getBorderColor() |
String |
getBorderStyle() |
String |
getBorderWidth() |
String |
getBottom() |
String |
getColor() |
String |
getCssText()
Textual representation of the declaration block.
|
String |
getCursor() |
String |
getDisplay() |
String |
getFontSize() |
String |
getFontStyle() |
String |
getFontWeight() |
String |
getHeight() |
String |
getLeft() |
int |
getLength()
The number of properties.
|
String |
getListStyleType() |
String |
getMargin() |
String |
getMarginBottom() |
String |
getMarginLeft() |
String |
getMarginRight() |
String |
getMarginTop() |
double |
getOpacity() |
String |
getOverflow() |
String |
getOverflowX() |
String |
getOverflowY() |
String |
getPadding() |
String |
getPaddingBottom() |
String |
getPaddingLeft() |
String |
getPaddingRight() |
String |
getPaddingTop() |
CSSRule |
getParentRule()
The containing
cssRule. |
String |
getPosition() |
CSSValue |
getPropertyCSSValue(String propertyName)
Only supported via getComputedStyle.
Returns a CSSValue, or null for Shorthand properties.Example: cssString= window.getComputedStyle(elem, null ).getPropertyCSSValue('color').cssText;Note: Gecko 1.9 returns null unless using getComputedStyle(). Note: this method may be deprecated by the W3C. |
String |
getPropertyPriority(String propertyName)
Returns the optional priority, "important".
Example: priString= styleObj.getPropertyPriority('color') |
String |
getPropertyShorthand(String propertyName) |
String |
getPropertyValue(String propertyName)
Returns the property value.
Example: valString= styleObj.getPropertyValue('color') |
String |
getRight() |
String |
getTextDecoration() |
String |
getTop() |
String |
getVisibility() |
String |
getWhiteSpace() |
String |
getWidth() |
int |
getZIndex() |
boolean |
isPropertyImplicit(String propertyName) |
String |
item(int index)
Returns a property name.
Example: nameString= styleObj.item(0) Alternative: nameString= styleObj[0] |
String |
removeProperty(String propertyName)
Returns the value deleted.
Example: valString= styleObj.removeProperty('color') |
void |
setBackgroundColor(String value) |
void |
setBackgroundImage(String value) |
void |
setBorderColor(String value) |
void |
setBorderStyle(String value) |
void |
setBorderWidth(double value,
String unit) |
void |
setBorderWidth(String value) |
void |
setBottom(double value,
String unit) |
void |
setBottom(String value) |
void |
setColor(String value) |
void |
setCssText(String arg) |
void |
setCursor(String value) |
void |
setDisplay(String value) |
void |
setFontSize(double value,
String unit) |
void |
setFontSize(String value) |
void |
setFontStyle(String value) |
void |
setFontWeight(String value) |
void |
setHeight(double value,
String unit) |
void |
setHeight(String value) |
void |
setLeft(double value,
String unit) |
void |
setLeft(String value) |
void |
setListStyleType(String value) |
void |
setMargin(double value,
String unit) |
void |
setMargin(String value) |
void |
setMarginBottom(double value,
String unit) |
void |
setMarginBottom(String value) |
void |
setMarginLeft(double value,
String unit) |
void |
setMarginLeft(String value) |
void |
setMarginRight(double value,
String unit) |
void |
setMarginRight(String value) |
void |
setMarginTop(double value,
String unit) |
void |
setMarginTop(String value) |
void |
setOpacity(double value) |
void |
setOverflow(String value) |
void |
setOverflowX(String value) |
void |
setOverflowY(String value) |
void |
setPadding(double value,
String unit) |
void |
setPadding(String value) |
void |
setPaddingBottom(double value,
String unit) |
void |
setPaddingBottom(String value) |
void |
setPaddingLeft(double value,
String unit) |
void |
setPaddingLeft(String value) |
void |
setPaddingRight(double value,
String unit) |
void |
setPaddingRight(String value) |
void |
setPaddingTop(double value,
String unit) |
void |
setPaddingTop(String value) |
void |
setPosition(String value) |
void |
setProperty(String propertyName,
String value)
No return.
Example: styleObj.setProperty('color', 'red', 'important') |
void |
setProperty(String propertyName,
String value,
String priority)
No return.
Example: styleObj.setProperty('color', 'red', 'important') |
void |
setRight(double value,
String unit) |
void |
setRight(String value) |
void |
setTextDecoration(String value) |
void |
setTop(double value,
String unit) |
void |
setTop(String value) |
void |
setVisibility(String value) |
void |
setWhiteSpace(String value) |
void |
setWidth(double value,
String unit) |
void |
setWidth(String value) |
void |
setZIndex(int value) |
String getCssText()
void setCssText(String arg)
int getLength()
CSSValue getPropertyCSSValue(String propertyName)
null
for Shorthand properties.null
).getPropertyCSSValue('color').cssText;String getPropertyPriority(String propertyName)
String getPropertyValue(String propertyName)
boolean isPropertyImplicit(String propertyName)
String item(int index)
String removeProperty(String propertyName)
void setProperty(String propertyName, String value)
void setProperty(String propertyName, String value, String priority)
String getBackgroundColor()
void setBackgroundColor(String value)
void clearBackgroundColor()
String getBackgroundImage()
void setBackgroundImage(String value)
void clearBackgroundImage()
String getBorderColor()
void setBorderColor(String value)
void clearBorderColor()
String getBorderStyle()
void setBorderStyle(String value)
void clearBorderStyle()
String getBorderWidth()
void setBorderWidth(String value)
void clearBorderWidth()
void setBorderWidth(double value, String unit)
String getBottom()
void setBottom(String value)
void clearBottom()
void setBottom(double value, String unit)
String getColor()
void setColor(String value)
void clearColor()
String getCursor()
void setCursor(String value)
void clearCursor()
String getDisplay()
void setDisplay(String value)
void clearDisplay()
String getFontSize()
void setFontSize(String value)
void clearFontSize()
void setFontSize(double value, String unit)
String getFontStyle()
void setFontStyle(String value)
void clearFontStyle()
String getFontWeight()
void setFontWeight(String value)
void clearFontWeight()
String getHeight()
void setHeight(String value)
void clearHeight()
void setHeight(double value, String unit)
String getLeft()
void setLeft(String value)
void clearLeft()
void setLeft(double value, String unit)
String getListStyleType()
void setListStyleType(String value)
void clearListStyleType()
String getMargin()
void setMargin(String value)
void clearMargin()
void setMargin(double value, String unit)
String getMarginBottom()
void setMarginBottom(String value)
void clearMarginBottom()
void setMarginBottom(double value, String unit)
String getMarginLeft()
void setMarginLeft(String value)
void clearMarginLeft()
void setMarginLeft(double value, String unit)
String getMarginRight()
void setMarginRight(String value)
void clearMarginRight()
void setMarginRight(double value, String unit)
String getMarginTop()
void setMarginTop(String value)
void clearMarginTop()
void setMarginTop(double value, String unit)
double getOpacity()
void setOpacity(double value)
void clearOpacity()
String getOverflow()
void setOverflow(String value)
void clearOverflow()
String getOverflowX()
void setOverflowX(String value)
void clearOverflowX()
String getOverflowY()
void setOverflowY(String value)
void clearOverflowY()
String getPadding()
void setPadding(String value)
void clearPadding()
void setPadding(double value, String unit)
String getPaddingBottom()
void setPaddingBottom(String value)
void clearPaddingBottom()
void setPaddingBottom(double value, String unit)
String getPaddingLeft()
void setPaddingLeft(String value)
void clearPaddingLeft()
void setPaddingLeft(double value, String unit)
String getPaddingRight()
void setPaddingRight(String value)
void clearPaddingRight()
void setPaddingRight(double value, String unit)
String getPaddingTop()
void setPaddingTop(String value)
void clearPaddingTop()
void setPaddingTop(double value, String unit)
String getPosition()
void setPosition(String value)
void clearPosition()
String getRight()
void setRight(String value)
void clearRight()
void setRight(double value, String unit)
String getTextDecoration()
void setTextDecoration(String value)
void clearTextDecoration()
String getTop()
void setTop(String value)
void clearTop()
void setTop(double value, String unit)
String getVisibility()
void setVisibility(String value)
void clearVisibility()
String getWhiteSpace()
void setWhiteSpace(String value)
void clearWhiteSpace()
String getWidth()
void setWidth(String value)
void clearWidth()
void setWidth(double value, String unit)
int getZIndex()
void setZIndex(int value)
void clearZIndex()
Copyright © 2016. All rights reserved.