我需要知道如何使用divs,css和right xhtml
创建此表 <table width="100%" border="1">
<tr>
<td style="width: 130px">1</td>
<td align="center">2</td>
<td style="width: 130px">3</td>
</tr>
</table>
答案 0 :(得分:3)
喜欢这样吗?
<div class="table">
<div class="row">
<span class="cell width130">1</span>
<span class="cell">2</span>
<span class="cell width130">3</span>
</div>
</div>
.table {
display: table;
width: 100%;
border: 1px solid black;
}
.row {
display: table-row;
}
.cell {
display: table-cell;
}
.width130 {
width: 130px;
}
答案 1 :(得分:0)