在searchFrme.html中用户Javascropt来实现
function show(){
  parent.leftFrame.rows="0,*";
  具体的不说了,按我的方法应该可以实现!!!!
}

解决方案 »

  1.   

    示例
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>Untitled Document</title>
        </head>
        <frameset cols="200,10,*" framespacing="0" frameborder="yes" border="0" bordercolor="#FFFF99" id="infoFrame">
            <frame src="../jsp/leftFrame.jsp" name="leftFrame" frameborder="no" scrolling="no" noresize="">
            </frame><frame id="leftbar" scrolling="no" noresize="" name="switchFrame" src="swich.html">
            </frame>
            <frameset name="frmParent" rows="203,314" framespacing="1" frameborder="yes" border="1" bordercolor="#333333">
                <frame src="searchFrame.html" name="searchFrame" frameborder="no" scrolling="no" onload="frmParent.rows = searchFrame.document.body.offsetHeight + ',*'">
    <frame src="mainFrame.html" name="mainFrame" frameborder="no" scrolling="no">
            </frameset>
            </frame>
        </frameset>
    </html>searchFrame.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    <body>
    <h1>searchFrame</h1>
    <input type="button" value="close me" onclick="top.frmParent.rows='0,100%';">
    </body>
    </html>
    mainFrame.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    <body>
    <h1>Bottom Frame</h1>
    <input type="button" value="close me" onclick="top.frmParent.rows='100%,0';">
    </body>
    </html>