iframe自适应高度

来源:互联网 发布:男人眼中的妩媚知乎 编辑:程序博客网 时间:2024/04/20 09:26
function framh(){
    //alert(frame1.document.body.scrollHeight);
 document.all.frame1.height = document.frame1.document.body.scrollHeight; 
 document.all.frame2.height = document.frame2.document.body.scrollHeight; 
}