<iframe src="abc.asp" name="abc"></iframe>在abc.asp中写入这么一些程序,如下:
<body>中添加
<body onload="abc()">
将下面的程序添加在页面上
<script language="javascript">
function abc() {
   parent.abc.style.width=document.body.offestWidth;
   parent.abc.style.height=document.body.offestHeight;
}
</script>

解决方案 »

  1.   

    IFRAME的SRC指定的页面的页面中写:
    <script>
    function onload()
      {parent.iframeName.height=document.body.scrollHeight;
       parent.iframeName.width=document.body.scrollWidth;
       setTimeout("top.scrollTo(0,0)",1);
      }
    </script>
      

  2.   

    IFRAME的SRC指定的页面的页面中写:
    <script>
    function onload()
      {parent.iframeName.height=document.body.scrollHeight;
       parent.iframeName.width=document.body.scrollWidth;
       setTimeout("top.scrollTo(0,0)",1);
      }
    </script>