<iframe id=demo src="about:<a href='about:<div style=height:1000>'>hehe</a>"></iframe>
<script>
setInterval("document.all.demo.height=demo.document.body.scrollHeight+20",10)
</script>

解决方案 »

  1.   

    在主页面中
    <td bgcolor="#EBF4E1">
      <iframe src="down/top.asp" width="100%" height="214" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="NO" id=iframe1>
      </iframe>
    </td>在 tt.htm 页面中:
    <body>
    <br>wwew<br><br>gd<br>dfg<br><br><br><br>g<br><br><br>
    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    </body>
    <script language=javascript><!--
    if (top.location !== self.location) 
    window.parent.document.all.iframe1.height=document.body.scrollHeight+20;
    // --></script>
      

  2.   

    in b.htm:<script>
    function window.onload()
    {
       window.resizeTo(document.body.scrollWidth+10,document.body.scrollHeight+10);
    }
    </script>