http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=204846

解决方案 »

  1.   

    你的代码没问题,如果不行,估计就出在
    <frameset id="Fra" frameborder="0" border="0" frameSpacing="0">没初始化个rows我下面的
    <frameset id="Fra" frameborder="1" border="1" frameSpacing="1" rows="400,*">
    <frame id="top" name="top" frameborder="0" src="3.htm">
    <frame id="name" name="main" src="6.htm">
    </frameset>3.htm
    <script>
    function height()
    {
    var top_height = document.body.scrollHeight;
     window.parent.document.getElementById("Fra").rows="100,*";}
    </script>
    <body  onLoad="height()">
      

  2.   

    谢谢各位兄台:
    漏了一点
    这样行吗?
    function height()
    {
    var top_height = document.body.scrollHeight;
     window.parent.document.getElementById("Fra").rows=top_height+",*";}