tryhtml_table_cellpadding2 在线代码实例
<p>没有单元格边距的表格:</p>
<table border="1">
<tbody><tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</tbody></table>
<p>有单元格边距的表格:</p>
<table border="1" cellpadding="10">
<tbody><tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</tbody></table>
<p><b>注意:</b> 在HTML 4中 cellpadding 属性已废弃,HTML5 已不支持该属性,可以使用 CSS 代替。</p>