比如:<iframe src="d.htm" id="dd"></iframe>
在d.htm里:
<body onload="parent.window.document.all.dd.height=document.body.scrollHeight" topmargin="0">

解决方案 »

  1.   

    Iframe_c:
    <body onload="mm()">function mm() //若有动态修改 iframe 内容的时候再调用一下这个函数即可
    {
      if(top!=self)
      {
        parent.document.all.midFrame.height = document.body.clientHeight;
      }
    }
      

  2.   

    不好意思, 上面代码改一下:
    parent.document.all.midFrame.height = document.body.scrollHeight;
      

  3.   

    function window_onload() {
         parent.document.all.midFrame.style.height=document.body.scrollHeight;
    }
      

  4.   

    <iframe style="width:expression(document.body.scrollHeight)" .... />
      

  5.   

    请问楼主:
        iframe和frame有啥区别,为什么我的代码中有
          <iframe name="asd".....>
          <textarea name="user" visible="false"></textarea>
       其中在另一个页面用jsp接受传来的参数,却是从textarea传来的参数,可是输入数据是从
    iframe框输入的,那么iframe和textarea的关系是什么呢???