Iframe 自适应高度宽度
来源:互联网 发布:管家婆进销存软件多少钱 编辑:程序博客网 时间:2024/04/20 15:43
方法一
----------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>page</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<body bgcolor="#E2FEBC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" load="changewin()">
<iframe scrolling="no" frameborder="0" height="" width="100%" src="Xml.mht" id="infobody" ></iframe>
</body>
</html>
<SCRIPT FOR=window EVENT=onload LANGUAGE="JScript">
//alert("onload");
changewin()
function changewin(){
if (infobody.document.body.scrollHeight){
document.all("infobody").height=infobody.document.body.scrollHeight;
}
else
{
settimeout("changewin()",500);
}
}
</SCRIPT>
方法2(另一哥们写的-xishanlang2001(西山狼2000) )
------------------------------------------------------------------------------------------------------------------------
<html>
<script>
function test(the)
{
if( the.readyState == "complete" )
{
the.height = the.contentWindow.document.body.scrollHeight + 50 ;//ie6 only
/*ie5 user:*/
//window.frames[ the.id ].document.body.scrollHeight + 50 ;//ie6 only
}
}
</script>
<body>
<iframe id="aa" name="aa" src="2.htm" onreadystatechange="test(this)" ></iframe>
</body>
</html>
- Iframe 自适应高度宽度
- iframe高度宽度自适应
- iframe自适应高度和宽度
- iframe自适应宽度和高度
- iframe自适应高度和宽度
- iframe 自适应宽度和高度
- 简单的iframe自适应高度和宽度
- iframe跨域自适应宽度,高度
- 如何使iframe自适应高度和宽度
- iframe高度宽度自适应兼容所有浏览器
- <iframe>标签自适应高度和宽度
- <iframe>标签自适应高度和宽度
- 使用iframe自适应宽度和高度
- <iframe>标签自适应高度和宽度
- <iframe>标签自适应高度和宽度
- <iframe>标签自适应高度和宽度
- <iframe>标签自适应高度和宽度
- <iframe>标签自适应高度和宽度
- 将字符串转换成日期类型
- MySQL数据导入导出方法与工具介绍(3-Exporting Data)
- 如何配置JSP环境(安装JDK和TOMCAT服务器)
- Oracle 10g SQL 优化再学习
- 正则表达式java.util.regex.Pattern
- Iframe 自适应高度宽度
- Web项目开发中的技术选型
- XMLHTTP 资源锦囊
- 用InstallShield 进行 ASP 软件的打包和自动安装
- Ajax是什么东西呢?
- 输出自定义的日期
- MSN的第一篇
- Explorer Suite I
- 本来要去旅游的,可是为了项目只好推迟去了。