function iFrameHeight() {
/***
* ifram自适应大小
* **/
var ifm= document.getElementById("iframepage");
var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentWindow.document;
if(ifm != null && subWeb != null) {
ifm.height = subWeb.documentElement.scrollHeight;
}
超强兼容iframe自适应大小,放大缩小都可以
最新推荐文章于 2025-05-18 13:16:54 发布