http://www.kuqin.com/webpagedesign/20080516/8536.html 原创链接,由于里面有例子,转载的时候麻烦,所以此处注明
<iframe id="frame_content" src="iframe_b.html" scrolling="no" frameborder="0"
onload="this.height=100"></iframe>
<script type="text/javascript">
function reinitIframe(){
var iframe = document.getElementById("frame_content");
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
var height = Math.max(bHeight, dHeight);
iframe.height = height;
}catch (ex){}
}
window.setInterval("reinitIframe()", 200);
</script>
931


&spm=1001.2101.3001.11974&articleId=8772829&d=1&t=3&u=f7630e91e2324a1784727b5272b3d2a3)

被折叠的 条评论
为什么被折叠?



