在父页面中的代码 :
1) <iframe src="a.htm" width="1000" frameborder="0" height="1000" οnlοad="this.style.height=parseInt(window.frames[0].document.body.scrollHeight);"></iframe> 有效
2)
<Script for=window EVENT=onload LANGUAGE="JScript">
document.all("xxx").height=xxx.document.body.scrollHeight;
</Script>
在子页面中的代码:
;parent.document.getElementById('xxx').style.height = document.body.scrollHeight; 有效
上述各方法经测试只有IE有效。。