您好,欢迎访问一九零五行业门户网

iframe 框架自动适应高度

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.m
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);
其它类似信息

推荐信息