Iframe自适应高度

来源:互联网 发布:贵阳大数据培训机构 编辑:程序博客网 时间:2024/05/18 20:52
function initHeight() {        var ifm = document.getElementById("commIframe");          var subWeb = document.frames ? document.frames["commIframe"].document  : ifm.contentDocument;          if (ifm != null && subWeb != null) {              ifm.height = window.screen.height;          }    }
0 0