我是用这个
<iframe width="100%" scrolling="NO" frameborder=0 src="new_page_1.htm" onload="this.style.height=parseInt(window.frames[0].document.body.scrollHeight);">
</iframe>
<iframe width="100%" scrolling="NO" frameborder=0 src="new_page_1.htm" onload="this.style.height=parseInt(window.frames[0].document.body.scrollHeight);">
</iframe>
在d.htm里:
<body onload="parent.window.document.all.dd.height=document.body.scrollHeight" topmargin="0">
parent.window.document.all.dd.width=document.body.scrollWidth
kingerq(多菜鸟) 的办法可以解决高度问题,但宽度却只有一部分显示!
哈哈,高度和宽度不是同样的道理吗?
还真的要全部写出来现成的给你吗?
这样子想一下都不会?真受不了。
<iframe src="d.htm" id="dd"style=" width:100%;"></iframe>
在d.htm里:
<body onload="parent.window.document.all.dd.height=document.body.scrollHeight" topmargin="0">