alert(document.body.scrollHeight);
alert(document.body.scrollWidth);

解决方案 »

  1.   

    alert(document.body.clientHeight);
    alert(document.body.clientWidth);
    alert(document.body.offsetHeight);
    alert(document.body.offsetWidth);
      

  2.   

    scrollHeight是加了滚动条的高度,我的意思是只要IE显示页面的高度就是除去IE的工具栏和windows任务栏后剩下的高度
      

  3.   

    alert(document.body.clientHeight);
    alert(document.body.clientWidth);
    页面除去margin的高和宽 alert(document.body.offsetHeight);
    alert(document.body.offsetWidth);
    页面整个区域的高和宽,不包括工具栏滚 动条之类看MSDN有详细的解释 的