
1、基础设置
1)、先设置table css背景为#bbb
2)、设置table单元之间间距为1
设置table表格单元间距为1,将间隔cellspacing值为“1”
<table border="0" cellspacing="1" cellpadding="0">
table{ background:#bbb} table td{ background:#fff}
<style>
table{ background:#bbb}
table td{ background:#fff}
</style>
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<th width="12%">序号</th>
<th width="28%">市中心名称</th>
<th width="36%">地址</th>
<th width="22%">电话</th>
</tr>
<tr>
<td>1</td>
<td>沈阳市</td>
<td>沈阳市铁西区飞翔路****</td>
<td>024-******</td>
</tr>
</table>
网友评论