首页 > 其他 > 详细

iframe高度从内向外撑起

时间:2016-11-14 02:53:27      阅读:213      评论:0      收藏:0      [点我收藏+]

index.html:

?

1
2
<div style="height: 200px;"></div>
<iframe id="gys" src="con.html" width="100%"></iframe>

 

con.html

?

1
2
3
<body onload="parent.window.document.all.gys.height=document.body.scrollHeight">
        <div style="height: 1800px; width: 500px; margin: 0 auto; "></div>
    </body>


iframe高度从内向外撑起

原文:http://yanhuang.blog.51cto.com/12278737/1872326

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!