type
fields
classes |
The CSS classes for this element. |
---|
methods
addClass |
Add the given CSS class name to this element. |
---|---|
addPseudoClass |
Add a psuedo-class CSS definietion to this element. |
clear |
Clear all style declarations. |
computed |
Get the computed property value. |
effective |
Get the effetive style property value, which is the most specific style or CSS rule in effect on this node. |
get |
Get the given property value. |
hasClass |
Return true if this element has the given CSS class name, or false if it does not. |
removeClass |
Remove the given CSS class name to this element. |
set |
Set the given propery value. |
setAll |
Set all the given property values. |
setCss |
Set properties via CSS text. |
toggleClass |
Toggle the presence of the given CSS class name based on the |
trap |
Get or set an attribute. |
Slot Details
addClass
addPseudoClass
classes
clear
computed
effective
Get the effetive style property value, which is the most specific style or CSS rule in effect on this node. Returns null
if no rule in effect for given property.
This method is restricted to stylesheets that have originated from the same domain as the document. Any rules that may be applied from an external sheet will not be included.