首页 > 网站 > WEB开发 > 正文

Iframe自适应高度

2024-04-27 15:03:11
字体:
来源:转载
供稿:网友
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; } }
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表