日期:2014-05-17  浏览次数:20652 次

求助表格的一个问题。大家看看
<table   width= "500 "   align= "center "   cellpadding= "0 "   cellspacing= "1 "   bgcolor= "#333366 "   style= "margin-top:10px; ">
<tr   bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr   bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr   bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
</table>

<table   width= "500 "   align= "center "   cellpadding= "0 "   cellspacing= "1 "   border= "0 "   bgcolor= "#333366 ">
<tr   bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr   bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
</table>
大家考到HTML里面查看下表格跟表格之间会有重复,变粗了。有没有办法
让他变细,求助

------解决方案--------------------
呵呵加上 margin-top:-1px;不就得了

<table width= "500 " align= "center " cellpadding= "0 " cellspacing= "1 " bgcolor= "#333366 " style= "margin-top:10px; ">
<tr bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
</table>

<table width= "500 " align= "center " cellpadding= "0 " cellspacing= "1 " border= "0 " bgcolor= "#333366 " style= "margin-top:-1px; ">
<tr bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td> 123321 </td>
<td> 123321 </td>
</tr>
</table>

------解决方案--------------------
或者把第一个style改成style= "margin-top:10px;margin-bottom:-1px; ">