要看你的FRAME怎么排的了,如果只是简单上下排列,可以参考这个代码
<HTML>
<HEAD>
<TITLE>www.thbfx.com</TITLE>
</HEAD>
<frameset cols="0,*" frameborder="NO" border="0" framespacing="0">
<frame scrolling="NO" noresize>
<frame src="http://www.fxnb.com/system/index_sub.asp?hostname=thbfx">
</frameset>
<noframes>
<body>
<p>This HTML uses frame your browser don't support</p>
</body>
</noframes>
</HTML>
<HTML>
<HEAD>
<TITLE>www.thbfx.com</TITLE>
</HEAD>
<frameset cols="0,*" frameborder="NO" border="0" framespacing="0">
<frame scrolling="NO" noresize>
<frame src="http://www.fxnb.com/system/index_sub.asp?hostname=thbfx">
</frameset>
<noframes>
<body>
<p>This HTML uses frame your browser don't support</p>
</body>
</noframes>
</HTML>
解决方案 »
- 如何把object做排列(依string)?
- ajax xmlhttp.responseText 返回boolean
- 有谁jqueryMobile用的很好呀?急救啊
- 我在用extjs的时候,用到了desktop和window,但是当同时打开desktop和window的时候,显示的先后顺序不对?
- 求只允许输入半角字符的正则表达式
- 用JavaScript实现菜单的弹出时出现的问题!
- 关于淘宝浮动导航如何实现的
- 紧急求助,请大家看看,如何实现这个功能(实际工作中遇到的问题)
- 请教高手!网页中打开文件时自动导入对应程序工具栏的问题
- 一个舒适的另类的Javascript RIA开发框架 iSmart JS
- 请问如何判断是否存在该数组元素?
- 菜鸟问题,高手救急!
Iframe 自适应其加载的网页高度(多浏览器兼容版)如何在打开这个页面时得到这个页面的高度?
一个框架面面,包含三个页面
头,左,右三个页面
右面的页面是主显示区会有滚动条,如何让整个框架页有滚动条,而不是单个页面出滚动条。
---------------------------------------------------------------
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<meta name='author' content='F.R.Huang(meizz梅花雪)//www.meizz.com'>
<title>用 iframe 模拟 frame 使网架网页能够居中</title>
</head>
<body topmargin=0 leftmargin=0><center>
<table border=0 width=780 height=100% cellspacing=0 cellpadding=0 align=center>
<tr><td width=780 colspan=2 height=100>
<iframe width=100% height=100% frameborder=1></iframe>
</td></tr>
<tr>
<td width=180>
<iframe width=100% height=100% frameborder=1></iframe>
</td>
<td width=600 valign=top><div style="height: 100%">
<iframe width=100% height=100% name="MzMain" frameborder=1
id="MzMain" src="用iframe模拟frame子页.htm"></iframe>
</div></td>
</tr>
</table>
</center></body></html>
用iframe模拟frame子页.htm
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<meta name='author' content='F.R.Huang(meizz梅花雪)//www.meizz.com'>
<title>iframe 自适应其加载的网页(多浏览器兼容)</title>
<script language=javascript>
function iframeAutoFit() //author: meizz(梅花雪 20041225)
{
if(self!=top && window.name=="MzMain") //这个 name 对应的是 iframe 的 name
{
var iframe = parent.document.getElementById(window.name);
if(iframe)
{
iframe.parentNode.style.height = iframe.style.height;
iframe.style.height = 10;
var h = document.body.scrollHeight;
var minimalHeight = parseInt((window.screen.width*11)/16, 10) - 280;
h = h<minimalHeight ? minimalHeight : h;
if(window.navigator.appName == "Microsoft Internet Explorer"
&& iframe.frameBorder=="1") h += 4;
iframe.parentNode.style.height = iframe.style.height = h;
}
else alert("Iframe's id unequal to iframe's name!");
}
}
if(document.attachEvent) window.attachEvent("onload", iframeAutoFit);
else window.addEventListener('load', iframeAutoFit, false);
</script>
</head>
<body>
<span style="width: 300; height: 400; background-color: yellow">
iframe 自适应其加载的网页(多浏览器兼容)
</span>
</body>
</html>