我这有个不出现滚动条的代码.放在iframe包含的页中..
<!--
function changeIframeHeight()  //自动改变 Iframe 的高度
{
   if(window.top != window.self)
   {
      if(document.body.scrollHeight>=450)
       window.parent.document.all.inchtm.height = document.body.scrollHeight+10;
  else
        window.parent.document.all.inchtm.height=450;
   } 
}
function window.onload()
{
   changeIframeHeight(); //改变 Iframe 高
}
//-->
你可以试着这样设一下:
<iframe id="ifrRight" name="ifrRight" src="" frameBorder="0" width="785"  height="495" scrolling="auto"></iframe>即scrolling="auto",我没测试.

解决方案 »

  1.   

    window.parent.document.all.inchtm.height 中的inchtm是iframe的ID或name
      

  2.   

    <script language='javascript'>
    function aa()
    {
        window.ifrRight.location.href="1.html";
    }
    </script><form name="form1" method="post" action="">
    <input type="button" value="test" onclick="aa();">
    <iframe id="ifrRight" name="ifrRight" src="" frameBorder="0" width="500"  height="300" scrolling="auto"></iframe>
    </form>你做个1.html做得很长 然后放在这个文件同一个目录下
      

  3.   

    谢谢rootcn(路) , bananasmiling(hello找我) ,ghjhot(ghjhot) 、zltostem(尘寞)(注意:排名不分先后!^_^)的帮助。把scrolling改为"auto"就可以自动生成滚动条了,谢谢!
    马上结帖