得出当前页面的width和height
在当前页面的resize事件中调整iframe的width和height

解决方案 »

  1.   

    表格的宽度用百分比表示不行的,iframe还是会出现滚动会shit..
      

  2.   

    建议你还是控制iframe里面页面的宽度。
    或者做一个用户控件,不用iframe
      

  3.   

    目前我的做法是每100毫秒就就调整一下iframe的高度和宽度》
      

  4.   

    <script>
    function toppage(){
      if (self.location!=top.location){
         parent.document.all(self.name).height = document.body.scrollHeight;
         }
      }
    </script>
    <body leftmargin="0" topmargin="0" onload="toppage()">
    (Iframe里面加载的页面中加上上面的代码,另外不要忘了给Iframe定个名字)
      

  5.   

    zheng_hz(鸿鹄) 兄,能否具体点??
      

  6.   

    <iframe style="width:100%;height:100%;" scrolling="no"></iframe>
      

  7.   

    iframe.html
    <html>
    <head>
    </head>
    <body>
    <IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO src="b.htm"></IFRAME>
    </body>
    </html>
    b.html
    <html>
    <head>
    <body > 很多内容的内面 </body>
    </html>
      

  8.   

    主页面<html>
    <head>
    </head>
    <body>
    <IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO src="XXXX.htm"></IFRAME>
    </body>
    </html>XXXX.htm<html>
    <head>
    </head>
    <body>
    </body>
    </html>
    b.html
    <html>
    <head>
    <script>
    function toppage(){
      if (self.location!=top.location){
         parent.document.all(self.name).height = document.body.scrollHeight;
         }
      }
    </script>
    <body leftmargin="0" topmargin="0" onload="toppage()"></body>
    </html>
      

  9.   

    http://expert.csdn.net/Expert/topic/2567/2567731.xml?temp=.2231256
     meizz(梅花雪) 给出一个做法。。