当前位置: 代码迷 >> ASP.NET >> ◆◇◆ 帮小弟我将 table 转成 div 。◆◇◆
  详细解决方案

◆◇◆ 帮小弟我将 table 转成 div 。◆◇◆

热度:4164   发布时间:2013-02-26 00:00:00.0
◆◇◆ 帮我将 table 转成 div 。◆◇◆
<table   id= "table1 "   style= "width:100%; ">
        <tr   id= "row1 ">
                <td   id= "cell1 "   style= "width:100px;   background-color:#EEEEEE; "> </td>
                <td   id= "cell2 "   style= "background-color:#FF0000; "> Content </td>
                <td   id= "cell3 "   style= "width:100px;   background-color:#EEEEEE; "> </td>
        </tr>
</table>
===================================================================
cell3   要自适应宽度。cell1,cell3   的高度(背景)要随着   cell2   增高而增高。

------解决方案--------------------------------------------------------
帮你顶
------解决方案--------------------------------------------------------
DIV比TABEL好吗???????
------解决方案--------------------------------------------------------
<div style= "width:100%; height: 110px; ">
<div style= "float:left; "> cccccccccccc </div>
<div style= "float:left; " > bbbbbbbb </div>
<div style= "width:auto; " > aaaaaaaaa </div>
</div>

cell1,cell3 的高度(背景)要随着 cell2 增高而增高
这个还没想好,要加div
  相关解决方案