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.
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.
Share Improve this question asked Oct 17, 2010 at 13:18 guilin 桂林guilin 桂林 17.4k30 gold badges97 silver badges148 bronze badges2 Answers
Reset to default 4Take a look at:
- Get the rendered style of an element
There are some pointers in http://www.quirksmode/dom/getstyles.html
also, google clientHeight offsetHeight
and you will find info on height.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745383100a4625320.html
评论列表(0条)