简单的框架网页高度自适应

来源:互联网 发布:架子鼓教学软件 编辑:程序博客网 时间:2024/04/30 06:09

function adjustIframeHeight() {
 var frm = document.getElementById("rightfram");
 var subWeb = document.frames ? document.frames[frm.name].document : frm.contentDocument;
 frm.height = subWeb.body.scrollHeight+30;
 }
window.setInterval("adjustIframeHeight()", 100);

 

 

 

 

 

原创粉丝点击