非常简单的表格问题。顶着有分,搞了一天搞不出来,特请帮忙。谢谢。!!!!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>测试</title>
</head>
<body leftmargin="0" topmargin="0" >
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<iframe frameBorder=0 name=tree scrolling=no src="../top.asp" style="height:168;width:100%;z-index:2"></iframe>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr >
<td width="288">
<iframe frameBorder=0 name=tree scrolling=no src="../left.asp" style="height:100%;width:288;z-index:2"></iframe>
</td>
<td style="width:100%;">
<iframe frameBorder=0 name=main scrolling=no src="aboutus1.asp" style="height:100%;visibility:inherit;width:100%;z-index:2"></iframe>
</td>
</tr>
</table>
</html>
以上是代码。
整体出来之后。不是根据aboutus1.asp的高度控制。
我想让根据aboutus1.asp的高度来控制,aboutus1.asp有多高,那么整体就有多高。
现在aboutus1.asp陷再整个框架中。
搞了一天搞不出来,特请帮忙。谢谢。
问题点数:20、回复次数:4Top
1 楼ice_berg16(寻梦的稻草人)回复于 2004-04-04 18:51:08 得分 5
aboutus1.asp中加入
<script>
function setIframe()
{
var iframe = parent.window.document.getElementById("main");
iframe.height = document.body.scrollHeight;
}
</script>
<body onload='setIframe()'>Top
2 楼QQgenie(妖魔鬼怪)回复于 2004-04-04 18:57:51 得分 7
顶
看皮兄的:http://expert.csdn.net/Expert/topic/2920/2920029.xml?temp=.6408045Top
3 楼QQgenie(妖魔鬼怪)回复于 2004-04-04 19:44:38 得分 7
用了cxty的:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>测试</title>
</head>
<script>
function autoResize()
{
try
{
document.all["test"].style.height=test.document.body.scrollHeight
}
catch(e){}
}
</script>
<body leftmargin="0" topmargin="0" >
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<iframe frameBorder=0 name=tree scrolling=no src="rnd.asp" style="height:168;width:100%;z-index:2"></iframe>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" height="100%">
<tr >
<td width="288">
<iframe frameBorder=0 name=tree scrolling=no src="../left.asp" style="height:100%;width:288;z-index:2"></iframe>
</td>
<td style="width:100%;">
<iframe frameBorder=0 id=test name=main style="height:expression(1); aho:expression(autoResize()); width:100%;" src="seahtml.htm" ></iframe>
</td>
</tr>
</table>
</html>
Top
4 楼ghost225(鬼啊)回复于 2004-04-04 19:57:07 得分 1
upTop




