当前位置: 代码迷 >> Web前端 >> 转:兑现iFrame自适应高度
  详细解决方案

转:兑现iFrame自适应高度

热度:12   发布时间:2012-07-15 20:11:29.0
转:实现iFrame自适应高度

转载自:http://www.cnblogs.com/skywind/archive/2007/07/24/829550.html

?

<iframe id="iFrame1" name="iFrame1" width="100%" onload="this.height=iFrame1.document.body.scrollHeight" frameborder="0" src="index.htm"></iframe>
看到了吧,关键就在于onload="this.height=iFrame1.document.body.scrollHeight"! 
?
  相关解决方案