实现iFrame自适应高度,原来很简单!

<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"! 
 

 

from:http://www.cnblogs.com/skywind/archive/2007/07/24/829550.html

posted @ 2010-01-20 00:19  过世许久  阅读(431)  评论(0编辑  收藏  举报