87,923
社区成员
发帖
与我相关
我的任务
分享
function iFrameHeight() {
var ifm = document.getElementById("iframe");
var subWeb = document.frames ? document.frames["iframe"].document : ifm.contentDocument;
if (ifm != null && subWeb != null) {
var ifr = $(window.frames[0].document);
ifr.ready(function () {
// 获取iframe内页面高度,然后返回给父页面
});
}
}
var ifm = document.getElementById("iframe");
var subWeb = document.frames ? document.frames["iframe"].document : ifm.contentDocument;
if (ifm != null && subWeb != null) {
var ifr = $(window.frames[0].document);
ifr.ready(function () {
// 获取iframe内页面高度,然后返回给父页面
});
}
}