代码如下:
[code]
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 = parseInt(dHeight)-140;
}
catch (ex){}
}
window.setInterval("reinitIframe()", 200);
[/code]
iframe, 高度自适应阅读全文
支持博主
还是很不错的
不错哦!!学习了嘿嘿!!!
确实不错的
很不错的哦
I really enjoy
Hello! You hav
不错哦!!学习个撒嘿嘿!!
太好了
好