1.父页面 test.html
获取iframe var oframe = document.getElementById("main")
获取子页面 var child = oframe.contentWindow.document
获取子页面元素 var test = child.getElementById("test")
获取子页面高度 var childh = child .body.offsetHeight
获取子页面高度
2.子页面 iframe.html
查看更多关于iframe父子页面操作-比较好用的两个方法-window.parent/oframe.conten的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did106549