iframe页面(父页面):
<a href="a1.html" target="a1">页面1</a>
<a href="a2.html" target="a2">页面2</a>
<iframe id="a1" name="a1" style="width:200px;">
现在要求:点击a标签时iframe加载对应页面(已经实现),然后iframe中的页面不出现纵向滚动条并内容显示完整,a1.html中body的高度为500,a2.html中body的高度为1000
我这有一段代码,挺好用的 你可以试一下
不行,加载a1.html是成功了(高500),然后加载a2.html也成功了(高1000),然后在去加载a1.html,页面底部就会出现500的空白区域
追答你其它块是不是也设置了高度,我现在用的就是这个,就没有你这个问题,你的是html页面吗,我的是aspx页面,不知道是不是有差别