iframe自适应高度
来源:互联网 发布:windows nas 教程 编辑:程序博客网 时间:2024/05/21 19:40
<iframe src="edit-index.html" width="969" id="my_iframe" frameborder="no" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<script language="JavaScript">
$(function(){var document_height="";
//iframe自适应高度
var timeIframe;
window.onload=function(){
timeIframe=setTimeout(GetIframeStatus,10);
}
function GetIframeStatus()
{
var iframe = document.getElementById("my_iframe");
var iframeWindow=iframe.contentWindow;
if(iframeWindow.document.readyState=="complete")
{
var iframeWidth,iframeHeight;
iframeWidth=iframeWindow.document.documentElement.scrollWidth;
iframeHeight=iframeWindow.document.documentElement.scrollHeight;
iframe.width=iframeWidth;
iframe.height=iframeHeight;
}
else
{
timeIframe=setTimeout(GetIframeStatus,10);
}
}
})
</script>
0 0
- Iframe高度自适应
- iframe 的自适应高度
- 是Iframe高度自适应
- iframe 的自适应高度
- iframe自适应高度
- Iframe自适应高度
- 让IFRAME自适应高度
- Iframe 自适应高度宽度
- iframe自适应高度
- iframe自适应高度
- Iframe自适应高度[摘]
- 让Iframe自适应高度
- IFRAME自适应高度
- iframe自适应高度[转]
- iframe自动自适应高度
- iframe 自适应高度
- Iframe自适应高度
- iframe自适应高度
- Strust2+Spring+iBatis 20170413
- Java NIO使用及原理分析 (一)
- 一个TCP包中的数据数据问题
- Linux 常用命令
- If 语句
- iframe自适应高度
- bzoj4628
- AndroidStudio 单元测试
- C# 少量字符串链接方法及测试(3)+=与StringBuilder
- Python 变量
- 使用命令行快速删除文件和文件夹
- Struts2远程代码执行漏洞S2-045利用及修复
- CentOS6 GitLab安装
- kafka常用命令