FAQ区有iframe1.htm的代码:
<iframe src=2.htm id=ifrm></iframe>
2.htm的代码:
<script>
function resize()
{parent.document.all.ifrm.height=document.body.scrollHeight;}
</script>
<body onload="resize()">
</body>//从你的子窗口来控制父窗口ifram的高度
==========================
你或者设
<iframe src=2.htm id=ifrm scrolling="no"//此处设没有滚动条,不过这就固定死了大小
></iframe>
<iframe src=2.htm id=ifrm></iframe>
2.htm的代码:
<script>
function resize()
{parent.document.all.ifrm.height=document.body.scrollHeight;}
</script>
<body onload="resize()">
</body>//从你的子窗口来控制父窗口ifram的高度
==========================
你或者设
<iframe src=2.htm id=ifrm scrolling="no"//此处设没有滚动条,不过这就固定死了大小
></iframe>
写上height应该能固定高度