style="table-layout:fixed"
这样表格的宽度就决定于第一行列的宽度

解决方案 »

  1.   

    固定Table首行(20041123)
    http://jkisjk.vip.sina.com/html/fixHeadTr2.htm--------
    另:
    table-layout:fixed 
    Table and column widths are set either by the sum of the widths on the COL objects or, if these are not specified, by the width of the first row of cells.
      

  2.   

    是固定在IE Status Bar的上方啊
      

  3.   

    如果页面内容很多,那这个table还需要在Status Bar的上方吗?
      

  4.   

    <table height=100% width=100%>
     <tr><td>
      <div style="width:100%;height:100%;overflow:auto;">
        <table width=100%>数据内容</table>
      </div>
     </td></tr>
     <tr height=20><td>固底内容</td></tr>
    </table>
      

  5.   

    哦,上面说错了如果叶面内容很多,table会自己被顶到bottom,但是问题就是也面内容很少的时候,这个table就悬在中间了(因为这个table是一个tail ),我希望内容很少的时候也在status bar上面还请各位朋友帮我想想办法
    多谢!
      

  6.   

    "如果叶面内容很多,table会自己被顶到bottom"
    ----------
    如果内容比上面说的还多,要它怎样?
      

  7.   

    网站简介 - 广告服务 - 网站地图 - 帮助信息 - 联系方式    
    百联美达美公司 版权所有 京ICP证020026号 
    Copyright &copy; CSDN.net, Inc. All rights reserved  -----------------------就像这些信息一样,不管多少内容,都要在叶面最底部,就是一个tail了
      

  8.   

    不管多少内容,都要在叶面最底部,就是一个tail了
    用frame啦
      

  9.   

    这些是用frame分层来实现的,或者是用服务器端模板来动态生成的(本身代码就在最后面的)
      

  10.   

    CSDN的做法是没有作处理
    内容较少时,这一部分(版权声明)将在页面的中间lienzhu(李强)的代码可以达到你的要求
    eglic(圪圪)说的方法可以简省部分代码,
    不过实际上也没见有多少人用(俺之前所在的公司恰恰这么用了)
    李强的代码可以去掉div:
    <table height=100% width=100% cellspacing=0 >
     <tr><td height=100% width=100% valign=top >    content  </td></tr>
     <tr height=20><td>固底内容</td></tr>
    </table>
      

  11.   

    谢谢各位,还有个问题请教<table>
    <tr><td width=200></td><td width=*><iframe src=xxx /></td></tr>
    </table>以上框架如何能让iframe的高度随src里的叶面的高度自动调整高度,而不被table本身的高度限制死
    现在iframe的内容一多,iframe就出现滚动条了,我想让iframe里面所有的内容都显示出来,不需要出现滚动条有没有好的办法啊