nsIDOMViewCSS:getComputedStyle

"DIV" element, id="sample"

"P" element, class="sample", id="style" .sample:first-line{ font-weight: bold; } #sample { font-size: 11pt; font-family: Arial; } div#sample { font-family: cursive; background-color: #ffeecc; color: #996633; } #sample:first-line{ font-family:Arial,monospace; } p { font-size:9pt; } p.sample { font-family: helvetica; } p#style { color:#339966; font-family: monospace; } #style { background-color:#ccffee; } p#body { color:#663399; } p#body:first-line{ font-weight:900; } #body { background-color:#f8eeff; } #body:first-line{ font-family:fantasy; }

"P" element, class="sample", id="body"
The interface represents a CSSView. The getComputedStyle method provides a read only access to the computed values of an element.

Element : Pseudo element :

Made by Hagiwara.
It's free to copy and arrange this sample. But please keep to regulation of MDSProject.
Last update 2002.11.03