日期:2014-05-17  浏览次数:20799 次

框架自动高度问题(在线等)
|     topframe     |
|____________|
|                         |
|   mainframe     |
|                         |
|                         |
topframe高度是固定的200象素,要求mainframe高度随着内容的多少变化高度,不能出现滚动条,并且内容要显示完全。请问各位大哥大姐怎么实现啊?我的代码在下面:
topframe.html
<html>
<head>
</head>
<body>
test <br> test <br> test <br> test <br> test <br>
</body>
</html>
mianframe.html
<html>
<head>
</head>
<body>
test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br> test <br>
</body>
</html>

frame.html
<html   xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "   />
<title> 无标题文档 </title>
</head>
<frameset   rows= "80,* "   frameborder= "no "   border= "0 "   framespacing= "0 ">
    <frame   src= "topframe.html "   name= "topFrame "   scrolling= "No "   noresize= "noresize "   id= "topFrame "   />
    <frame   src= "mianframe.html "   name= "mainFrame "   id= "mainFrame "   />
</frameset>
<noframes> <body>
</body>
</noframes> </html>

------解决方案--------------------
http://hi.baidu.com/kmiaoer/blog/item/a87387267caf79168b82a154.html
哎 我也曾经遇见过~~~~呵呵