Value of a CSS style attribute.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | Netscapte | no | 1.0+ | no | no | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Value of a CSS style attribute. | no | 1.0+ | no | no | no | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Text representing the CSS value. | no | 1.0+ | no | no | no | no |
Type of CSS value represented by the object. See remarks for possible values. | no | 1.0+ | no | no | no | no |
References
CSSPrimitiveValue | CSSValueList
Availability
HTML DOM Level 2 | W3C
Constructor Detail
Property Detail
String cssText
Text representing the CSS value.
-
For examples, see the quirksmode test page:
- Availability
HTML DOM Level 2 | W3C
Number cssValueType - read only
Type of CSS value represented by the object. See remarks for possible values.
- Remarks
-
The following constants are valid values for
cssValueType:CSS_INHERIT = 0- Indicates that the value of the CSS style attribute is inherited.CSS_PRIMITIVE_VALUE = 1- Indicates that the value of the CSS style attribute is a primitive value.CSS_VALUE_LIST = 2- Indicates that the CSS value actually contains a list of values.CSS_CUSTOM = 3- Indicates that the CSS value is of a type not supported by CSS or DOM standards.
- Availability
HTML DOM Level 2 | W3C
