Bor*_*lis 8 html css html-table cellspacing
我想对下面写的表格进行设计.
<table border="1" cellspacing="10">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
问题是cellspacing设置了细胞之间的空间和水平,我希望它只能在水平上完成.有没有办法做到这一点.
Juk*_*ela 16
使用border-spacing表上的CSS属性.浏览器支持相当不错(主要不包括IE,包括IE 7).例:
table { border-spacing: 10px 0; }
Run Code Online (Sandbox Code Playgroud)