margin值,只和要居中的盒子的高度height有關。margin的第一和第四的值為height的一半,就能居中
2020-06-10
<thead>
<tbody></tbody>
<tfoot>
只有tbody是一組 thead和tfoot是單個標簽吧
<tbody></tbody>
<tfoot>
只有tbody是一組 thead和tfoot是單個標簽吧
2020-06-08
關于塊狀元素,我理解的一個特點是可以對這標簽做對齊操作,包括居中,而內聯(lián)標簽是不能對齊的。
當a標簽使用display:block后也可以進行居中
當a標簽使用display:block后也可以進行居中
2020-06-03
<table border="1">
<captions>成績表</caption>
<thead>
<tr>
<th>科目</th>
<th>分數(shù)</th>
</tr>
</thead>
<tbody>
<tr>
<td>語文</td>
<td>99</td>
</tr>
</tbody>
<tfoot>
<tabody>
<tr>
<td>數(shù)學</td>
<td>60</td>
</tr>
</tabody>
<captions>成績表</caption>
<thead>
<tr>
<th>科目</th>
<th>分數(shù)</th>
</tr>
</thead>
<tbody>
<tr>
<td>語文</td>
<td>99</td>
</tr>
</tbody>
<tfoot>
<tabody>
<tr>
<td>數(shù)學</td>
<td>60</td>
</tr>
</tabody>
2020-05-31
代碼如下:
<table border='1'>
<caption>前端三劍客</caption>
<tr>
<th>知識點</th>
<th>重要程度</th>
<th>難度</th>
<th>學習周期</th>
</tr>
<tr>
<td>html</td>
<td>5星</td>
<td>3星</td>
<td>7天</td>
<table border='1'>
<caption>前端三劍客</caption>
<tr>
<th>知識點</th>
<th>重要程度</th>
<th>難度</th>
<th>學習周期</th>
</tr>
<tr>
<td>html</td>
<td>5星</td>
<td>3星</td>
<td>7天</td>
2020-05-29