IE6 javascript can't get height by document.getElementById(id).offsetHeight
Posted
by liuxingruo
on Stack Overflow
See other posts from Stack Overflow
or by liuxingruo
Published on 2010-05-09T15:19:02Z
Indexed on
2010/05/09
15:28 UTC
Read the original article
Hit count: 209
JavaScript
Hey guys,
I just got a problem which is I can't get the height property of a <p>
.(use javascript document.getElementById(id).offsetHeight)
It works fine both in FF or chrome.
I have tried to set the style of the <p>
to height:100%;/height:auto;
but both not work.
Please help me, thanks :D
© Stack Overflow or respective owner