iframe高度自适应
来源:互联网 发布:多重网络怎么解决 编辑:程序博客网 时间:2024/06/07 11:18
function reinitIframe(fr){
var iframe = document.getElementById(fr);
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
var height = Math.max(bHeight, dHeight);
iframe.height = height;
}catch (ex){}
}
<iframe id="the2" src="../living.html" width="640" height="100%" style="overflow-y: scroll" frameborder="0" scrolling="Auto"></iframe>
<script type="text/javascript">
window.setInterval("reinitIframe('the2')", 200);
</script>
0 0
- Iframe高度自适应
- iframe 的自适应高度
- 是Iframe高度自适应
- iframe 的自适应高度
- iframe自适应高度
- Iframe自适应高度
- 让IFRAME自适应高度
- Iframe 自适应高度宽度
- iframe自适应高度
- iframe自适应高度
- Iframe自适应高度[摘]
- 让Iframe自适应高度
- IFRAME自适应高度
- iframe自适应高度[转]
- iframe自动自适应高度
- iframe 自适应高度
- Iframe自适应高度
- iframe自适应高度
- IOS画线的问题
- C#中数组、ArrayList和List三者的区别
- 【onTouchEvent()方法】和【OnTouchListener中onTouch()方法】
- Uber上海初体验
- 春节期间SDN领域的重大事项
- iframe高度自适应
- Android内存优化大全(全)
- 谈谈UI架构设计的演化
- System IPC 与Posix IPC(semaphore信号灯)
- TCP为什么是三次握手不是两次四次呢?
- ByteBuffer 缓冲器(一)
- Linux中安装MongoDB
- Delphi泛型应用示例之二:通用数据池
- 信息图:如何成为一名数据科学家?