<div class="codetitle"> <span><a style="CURSOR: pointer" data="3455" class="copybut" id="copybut3455" onclick="doCopy('code3455')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code3455"> <br><script type="text/javascript"> <BR>function reinitIframe(){ <BR>var iframe = document.getElementById("mainFrame"); <BR>try{ <BR>var bHeight = iframe.contentWindow.document.body.scrollHeight; <BR>var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; <BR>var height = Math.max(bHeight, dHeight); <BR>iframe.height = height; <BR>}catch (ex){} <BR>} <BR>window.setInterval("reinitIframe()", 200); <BR></script> <br> </div>