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;
}
}
Iframe自适应高度
最新推荐文章于 2024-03-29 11:18:46 发布