1 回答

TA貢獻1865條經(jīng)驗 獲得超7個贊
嘗試這個:
table, td, th {
border: 1px solid black;
}
table {
border-collapse: collapse;
width: 100%;
}
thead {
border: 2px solid blue;
vertical-align: bottom;
}
th {vertical-align: bottom;}
thead th {
height: 100px;
}
td {
height: 50px;
vertical-align: bottom;
}
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th>A1</th>
<td>Albert</td>
<td>100</td>
</tr>
<tr>
<th>B2</th>
<td>Bobby</td>
<td>150</td>
</tr>
<tr>
<th>C3</th>
<td>Charlie</td>
<td>300</td>
</tr>
</tbody>
</table>
- 1 回答
- 0 關注
- 118 瀏覽
添加回答
舉報