<frameset rows="70,*,25"  border="1" bordercolor="#FF0000" scrolling = 'auto'>
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="No" >
  <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
top.html固定,bottom.html固定,如何让main.html的内容自动撑的整体frameset出现滚动条,main.html不出现滚动条
main.html里有内容以及一个iframe,低下是main.html
<body>
<table width="100%" border="1" bordercolor="#000033" bgcolor="#FFCCCC">
  <tr>
    <td height="116"><p>工作区间</p>
<p>延长石油曾最早记载于东汉史学家班固的《汉书》和北宋科学家沈括的《梦溪笔谈》。</p>
</td>
  </tr>
</table>
<iframe src="teset2.html" width="100%" frameborder="0" id="testFrame" scrolling="No" style="height:auto"></iframe>
</body>

解决方案 »

  1.   

    这个不行吧  top.html固定,bottom.html固定,如何让main.html的内容自动撑的整体frameset出现滚动条,main.html不出现滚动条
    既然这样的话 你可以不用frameset嘛 你就是个上中下结构可以在main.html里面上下各加一个iframe不就行了吗
      

  2.   

    谢谢你的建议,只是这个框架他们已经已经应用了,现在我需要修改的是页面只有一个滚动条,main.html中的内容如果多的话,就应用外面的滚动进行滚动显示,而不是main.html中也有一个滚动条进行滚动显示。
      

  3.   

    var crrentIEHeight = window.screen.availHeight;
    var crrentIEWidth = window.screen.availWidth;
    function init()
    {
     if(crrentIEHeight<734)
    {
    crrentIEHeight = 734;
    }
    $("middleframe").style.width = crrentIEWidth-5;
    $("middleframe").style.height = crrentIEHeight-window.screenTop-24;
    }

    function $(id)
    {
    try{
    return document.getElementById(id);
    }
    catch(e){}
    }

    window.onload = init;
      

  4.   

    没细看,楼主去查查CSS属性吧(有美工的话,让美工去处理),比如加个overload:hidden,就可以去掉滚动条了。
      

  5.   

    你把main.html中的table的高度设置高一点儿,框架页面的main.html部分不就有滚动条了么!