用iframe调用frameset怎么能让iframe自动调整高,大家帮忙看看。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<frameset rows="*" cols="165,*" framespacing="0" frameborder="no" border="0" >
<frame src="left1.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="right.html" name="mainFrame" scrolling="no" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
iframe的代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="css/css4.css" rel="stylesheet" type="text/css" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body >
<iframe src="ye.html" id="main" name="main" frameBorder="0" scrolling="no" height="78" width="100%"></iframe>
</body>
</html> --------------------编程问答-------------------- 可以在left1.html或者right.html里面判断哪个页面是最高的,然后,window.top.document.getElementById("main").style.height=xx+"px"进行设置 --------------------编程问答--------------------
补充:.NET技术 , .NET技术前瞻