使用iframe设置frameset的高度

index.html的页面代码如下:
<!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=utf-8" />
<title>********</title>
</head>
<frameset cols="1400" frameborder="no" border="0" framespacing="0" scrolling="yes" height="2000">
<frameset rows="154,2600,154" cols="*" framespacing="0" frameborder="no" border="0" bordercolor="#b7d4f4">
  <frame src="top.html" name="topFrame" scrolling="No" id="topFrame" title="topFrame" />
  <frameset rows="2600" cols="236,*" framespacing="0" frameborder="no" border="0" bordercolor="#b7d4f4">
    <frame src="left.html" name="leftFrame" scrolling="No" id="leftFrame" title="leftFrame" />
    <frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" />
  </frameset>
  <frame src="top.html" name="bottomFrame" scrolling="No" id="topFrame" title="topFrame" />
</frameset>
</frameset>
<noframes>
<body></body>
    </noframes>
</html>

------------------------------------------------------------------------------------------------------------- default.html代码如下: <!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=utf-8" /> <title>***************</title> </head> <body style="margin: 0px auto;height: 3000px;1440px;"> <iframe src="index.html" style="height:100%;100%;border- 0px;"> </iframe> </body> </html>
原文地址:https://www.cnblogs.com/kingangWang/p/3175112.html