How To Get Computed Style Of A Htmlelement
no jQuery. pure javascript. e.g. Use element.height but I got nothing. I ever seen code like below befow: (ele.style || ele)[styleName] but I forgot what it use to.
Solution 1:
Take a look at:
Solution 2:
There are some pointers in http://www.quirksmode.org/dom/getstyles.html
also, google clientHeight offsetHeight
and you will find info on height.
Post a Comment for "How To Get Computed Style Of A Htmlelement"