<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>시도해 보세요{ <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 = 높이; <br>}catch(예){} <br>} <br>window.setInterval("reinitIframe()", 200); <br></script> <br> </div>