iframe高度自动适应宽高的js (兼容FF)
来源:互联网 发布:投资理财系统源码 编辑:程序博客网 时间:2024/05/07 02:22
在机票版本中应用了iframe,但FF对iframe的高度解析有问题,因此调用以下JS
function SetCwinHeight(){var xunzou=document.getElementById(“xunzou”); //iframe idif (document.getElementById){if (xunzou && !window.opera){if (xunzou.contentDocument && xunzou.contentDocument.body.offsetHeight){xunzou.height = xunzou.contentDocument.body.offsetHeight;}else if(xunzou.Document && xunzou.Document.body.scrollHeight){xunzou.height = xunzou.Document.body.scrollHeight;}}}}HTML调用<iframe width=”100%” id=”xunzou” onload=”Javascript:SetCwinHeight()” height=”1″ frameborder=”0″ src=”地址” scrolling=”no”></iframe>
- iframe高度自动适应宽高的js (兼容FF)
- IE FF 兼容的IFRAME 自适应高度JS代码
- iframe自动适应宽高度
- 用JS控制Iframe自动适应页面的高度
- js Iframe 自动适应 高度 宽度
- iframe高度自动适应
- iframe自动适应高度
- iframe 高度自动适应
- Iframe自动适应高度
- iframe高度自动适应
- IFRAME 自动适应高度
- Iframe自动适应高度
- iframe自动适应高度
- iframe自动适应高度
- iframe 自动适应高度
- iframe 自动适应高度
- iframe高度自动适应
- iframe高度自动适应
- Android framework Watchdog的监控过程
- 兼容各种浏览器的图片反转
- adf for dotnet中servercontext的释放
- Vmware server 下为Oracle RAC 添加共享磁盘
- css和javascript在IE和Firefox中二十三个不同点
- iframe高度自动适应宽高的js (兼容FF)
- Jquery Mobile dialog的生命周期
- PHP获取当前登陆用户IP
- Spring3无法显示css/js/jpg/gif
- 行人检测HOG+SVM
- 设计中的五行
- UIView你知道多少
- C++中nth_element函数的用法
- WDK/WinDDK setenv 路径设置