使用iframe加载其他页面的时候,需要自适应iframe的高度 这里加载了两个不同内容高度的页面至iframe中 1. 没有设置高度 <div class="iframe-wrapper"> <iframe name ...
使用iframe加载其他页面的时候,需要自适应iframe的高度
这里加载了两个不同内容高度的页面至iframe中
1. 没有设置高度
<div class="iframe-wrapper"> <iframe name="iframe1" src='/images/loading.gif' data-original="iframe1.html" frameborder="0" width="100%"></iframe> <iframe name="iframe2" src='/images/loading.gif' data-original="iframe2.html" frameborder="0" width="100%"></iframe> </div>
原标题:让动态的 iframe 内容高度自适应
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。