Div的高度大于一定数值后,IE8自动调整其高度为一固定值
<div style="height: 200px; width: 100%; overflow: auto; position: relative;" id="div1"> <div style="[color=#FF0000]height: 2000000px[/color]; width: 1000px;" id="hugeDiv"> </div> XXXXXXXXXX</div>
<!DOCTYPE HTML><html lang=""><head> <meta charset="gbk"> <title></title></head><body> <div style="height: 200px; width: 100%; overflow: auto; position: relative;" id="div1"> <div style="height: 2000000px; width: 1000px;" id="hugeDiv"></div> XXXXXXXXXX </div> <script type="text/javascript"> alert( document.getElementById('hugeDiv').offsetHeight ) </script></body></html>