Iframe自适应页面高度问题的最简单最适用的解决办法

<iframe id="iframeName" name="iframeName" runat="server" src="ShowMsg.jsp" width="710" height="100%" scrolling="no"    frameborder="0" align="left" "this.style.height=document.all.iframeName.contentWindow.document.forms(0).offsetHeight;"></iframe>
以上的代码可以实现IFrame的高度随着源文件ShowMsg.jsp的高度的变化而变化。

posted on 2007-04-19 17:44 我为J狂 阅读(551) 评论(0)  编辑  收藏 所属分类: Web

<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

导航

统计

常用链接

留言簿(11)

随笔分类(48)

文章分类(29)

常去逛逛

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜