<div style="OVERFLOW-X:auto;OVERFLOW-Y:auto;Width:100%;Height:100%">
老大你的高和宽都用的100%呀,你改成像素就有了嘛:
<div style="OVERFLOW-X:auto;OVERFLOW-Y:auto;Width:200;Height:200">

解决方案 »

  1.   

    楼上的兄弟,谢谢你
    但可不可以不用把宽和高设固定值,难道不能根据 div 所属的table 的大小自动调整吗
      

  2.   

    有滚动条啊
    你输入了一串字母会被编译为一个单位,当然不会换行,
    这样就行了表格的高度设为100%时,会随着里面的东西增加而增加的
    <html>
    <body scroll=no >
    <table width="100%" height="100%" cellpadding=0 cellspacing=0>
    <tr>
    <td>
    <div style="OVERFLOW-X:auto;OVERFLOW-Y:auto;Width:100%;Height:100%">
    <table width="100%" height="100%" cellpadding=0 cellspacing=0>
    <tr>
    <td>feeeeeeeeeeeeeeeeeeeeeeeeeeeeee
    <br>eeeeeeeeeeeeeeeeeeeeeee
    <br>eeeeeeeeeeeeeeeeeeeeeeeeee
    <br>eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    <br>eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee<br>
    eeeeeeeeeeeefffffffffffffffffffffffffffffffffff<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>dddddddddddd
    </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
      

  3.   

    <div id=treedir style="overflow:auto;position:absolute;top:0px;width:100%;height:100%">