2013-01-24 57 views
0

我有一個HTML表與幾個單元格內,border=0屬性設置但邊界不消失,我做錯了什麼?邊界不會在html表中刪除

<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> 
    <tr> 
    <td> 
     <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">  
     <tr> 
      <td> 
      <br><br> 
      </td> 
     </tr> 
     </table> 
    </td> 
    </tr> 
</table> 
+0

試試這個[如何完全刪除HTML表格邊框] [1] [1]:http://stackoverflow.com/questions/5684144/how-to-completely-remove-borders-from-html-table – dataol

回答

0

更改第一單元格間距爲0

所以這裏的代碼:

<table width="500" border="0" align="center" cellpadding="0" cellspacing="0"  
bgcolor="#CCCCCC"> 
<tr> 

<td> 
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> 

<tr> 
<td><br> 
<br></td> 
</tr> 


</table> 
</td> 

</tr> 
</table>