I have used jQuery library to find out height of a div
.
Below is my div
element with attributes :
<DIV id="myDiv" style="height:auto; width:78;overflow:hidden"> Simple Test</DIV>
Below is my jQuery code to get height of <div>
var result = $("#myDiv").css('height');
alert(result);
After executing above statement I am getting result as "auto". Actually this is I am not expecting, instead of that I want the result in px dimension.
question from:
https://stackoverflow.com/questions/3839227/how-to-get-height-of-div-in-px-dimension 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…