iframe 自适应高度js
来源:互联网 发布:购买软件服务协议 编辑:程序博客网 时间:2024/06/10 03:33
<script type="text/javascript" language="javascript">
function SetCwinHeight(obj) {
var cwin = obj;
if (document.getElementById) {
if (cwin && !window.opera) {
if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
cwin.height = cwin.contentDocument.body.offsetHeight + 20; //FF NS
else if (cwin.Document && cwin.Document.body.scrollHeight)
cwin.height = cwin.Document.body.scrollHeight + 10; //IE
}
else {
if (cwin.contentWindow.document && cwin.contentWindow.document.body.scrollHeight)
cwin.height = cwin.contentWindow.document.body.scrollHeight; //Opera
}
}
}
</script>
<iframe id="id" name="name" frameborder="0" width="750px" scrolling="no"
onload="SetCwinHeight(this)"></iframe>
- iframe 自适应高度js
- js iframe自适应高度
- JS iframe高度自适应
- iframe 自适应高度js
- iframe js自适应高度
- iframe高度自适应js脚本
- iframe自适应页面高度js
- IFrame高度自适应js脚本
- js控制iframe高度自适应
- jQuery js iframe 自适应高度
- IFrame高度自适应js脚本
- IFrame高度自适应js脚本
- Iframe 自适应高度(js)
- 非js实现iframe高度自适应实现
- js脚本实现iframe框架自适应高度
- js实现页面iframe高度自适应
- jsp页面iframe高度自适应js
- iframe通过js实现自适应高度
- matlab 寻找二进制图像边缘
- 数字图像处理中基于纹理特性的匹配
- Android之AlarmManager(全局定时器/闹钟)指定时长或以周期形式执行某项操作
- ceeeee
- Android之AlarmManager
- iframe 自适应高度js
- VIM配置文件
- LBP算子
- win7 设置静态路由
- Cache概述
- extjs1
- HDFS文件存取编程
- 使用java api操作Hadoop文件
- 鼠标连续画点 matlab