用JS来控制:
<iframe name=meizz></iframe><script language=javascript>
function window.onload()
{
   var h = document.body.clientHeight;
   document.all.meizz.height = (h-40);
}
</script>
同理也可以对textarea进行控制

解决方案 »

  1.   

    1.<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><iframe width="100%" height="100%"></iframe></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#CCCCCC">上面是个IFRAME,是差这一行吗?</td>
      </tr>
    </table>
    2.<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><textarea style="width:100%; height:100%"></textarea></td>
      </tr>
      <tr>
        <td height="2px"></td>
      </tr>
    </table>
      

  2.   

    我是说IE最上面是一行文字,下面<IFRAME>占满剩余窗口。
      

  3.   

    这样试试
    <div style="display:block;position:absolute;top:10;left:;z-index:">
    <iframe width="100%" height="100%"></iframe>
    </div>