Can I Use Javascript To Check The Style Properties On An Object Which Has Been Styled With A Class?
A CSS class applies properties to a div object. As expected, when that object has been given that class, it now has the properties supplied by the class (width, height, and some m
Solution 1:
It sounds like you're after getComputedStyle()
.
The
Window.getComputedStyle()
method gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain.
Post a Comment for "Can I Use Javascript To Check The Style Properties On An Object Which Has Been Styled With A Class?"