javascript styleSheet cssText
| cssText | NN n/a IE 5 DOM n/a |
| Read/Write | |
|
Contains the entire text (as a string) of all rules defined in the style sheet. This is useful primarily if you wish to replace the entire set of rules with a new set. To act on the text of an individual rule in IE, access the cssText property of a single rule object (obtained by the styleSheet object's rules[i].cssText property); or, in Netscape 6, you can use the cssRules[i].cssText property. |
|
| Example | |
var allCSSText = document.styleSheets[0].cssText; |
|
| Value | |
String. |
|
| Default | |
Empty string. |
|
Previous: javascript styleSheet disabled
1948,Nickname,Homepage or email,Comments here,Add comment
