<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
html,body,td,th {
color: #ECE9D8;
margin: 0px 0px;
overflow-y:visible;
}
-->
</style>
</head><body>
<iframe marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" id="frametb" scrolling="no" style="width:100%"src="frame.html" 
onload="style.width=this.contentWindow.document.all.formfra.offsetWidth;"
+"style.height=this.contentWindow.document.all.formfra.offsetHeight;">
</iframe>
</body>
</html>

解决方案 »

  1.   

    onload="style.width=this.contentWindow.document.all.formfra.offsetWidth;"+"style.height=this.contentWindow.document.all.formfra.offsetHeight;"应该是这句错了,html里面没有这种写法的改成这样试试看
    <iframe marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" id="frametb" scrolling="no" style="width:100%"src="frame.html" onload="setStyle();">function setStyle(){
     style.width=this.contentWindow.document.all.formfra.offsetWidth;
     style.height=this.contentWindow.document.all.formfra.offsetHeight;
    }
      

  2.   

    // frame.html  跟着frame.html 有关系吗??   gray820928  可以 不过还是有错误 frame.html 页是没错误的.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style type="text/css" media="screen">
    @import 'style.css';
    </style>
        <style type="text/css">
    <!--
    html,body,td,th {
    color: #ECE9D8;
    margin: 0px 0px;
    overflow-y:visible;
    }
    -->
    </style>
    <script src="mootools.js" type=text/javascript></script>
    <script src="docs.js" type=text/javascript></script>
    <meta content="mshtml 6.00.6000.16544" name=generator>
    </head><body>
    <div id=Menu>
    <div class="MGroup">
    <a onselectstart="return false" onClick="changepic();this.blur();"/>
    Plugins<img id="arrow" name="pics" border="0" src="arrowDown.gif"></a>
    <input type="image" border="0" src="bg.jpg" onMouseDown="location='#'" oncontextmenu="return false" onFocus="this.blur()"/>
    </div>
    </div>
    </body>
    </html>
      

  3.   

    解决了.......onload="setStyle();" 多了这个   我说的呢