to net_lover(孟子E章)
   不能设置为100% 因为我里面还放了一个Table Table的width很长的 会把Div撑开。所以必须固定Div的长度。

解决方案 »

  1.   

    重载onresize就可以了 。 。 示例代码如下:
    (三个文件)frameresize.html , left.html ,right.html ..frameresize.html代码:<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
    <HTML>
    <HEAD>
    <TITLE>ricky </TITLE>
    </HEAD>
    <frameset cols="300,*" frameborder="Yes" border="0" framespacing="0"> 
      <frame name="leftFrame" src='left.html'>
      <frame src="right.html" name="mainFrame"  >
    </frameset>
    <noframes><body bgcolor="#FFFFFF" text="#000000">
    </body></noframes>
    </HTML>
    ----------------
    left.html代码如下:
    -------------
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
    <html><head>
    <title>无标题文档</title>
    </head>
    <body>
    左侧 。 。
    </body>
    </html>-----------------------------------
    right.html代码如下:
    --------------------------------------<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body onResize="doit()">
    <script>
    var width  = 100 ;
    var height = 30 ;
    function doit()
    {
        width  += 10 ;
    height += 5 ; 
        test.style.width = width  ;
        test.style.height = height  ;
    }
    </script>
    <div id="test" style="background-color:#ff0000;width:100px;height:30px;"></div>
    </body>
    </html>
    window2000 ,IE6.0下测试 , 通过中间的frame分隔线改变两边frame比例大小,或者
    通过IE边框改变整体frame大小 , 都能实现效果 。 。 。