jjjjj< ;/div>
js code:
alert($("#test").height());
alert($("#test").innerHeight());
alert($("#test"). outerHeight());
alert($("#test").outerHeight(true));
[html]
Results:
Results in ie: 17px, 37px, 41px, 61px
Result in ff: 41px, 61px, 65px, 85px
html code:
[code]
jjjjj
js code:
alert($("#test").height());
alert($("#test").innerHeight());
alert($("#test").outerHeight());
alert($("#test").outerHeight( true));
Results:
Results in ie: 18px, 38px, 42px, 62px
Results in ff: 42px, 62px, 66px, 86px
html code:
js code:
alert($("#test ").height());
alert($("#test").innerHeight());
alert($("#test").outerHeight());
alert($ ("#test").outerHeight(true));
Results:
Results in ie: 36px, 56px, 60px, 80px
Results in ff: 60px , 80px, 84px, 104px
Conclusion: In IE, height includes border and padding and the minimum value of height is 17px. In the same way, width can be obtained, but its minimum value is 15px.