2012-06-18 201 views
0

在我的html页面中,我有一个表格,每一行都有两个按钮,我想在行和列之间没有任何空格显示它们,即没有空格每行中的列和表中两行之间没有空格。我怎样才能得到这个?我试过如何在html中删除表格中的空格行和列

<table> 
    <tr> 
      <td colspan = 2><a data-role="button" href = "getFun()" >check</a></td> 
    </tr> 
    <tr>        
      <td><a data-role = "button" href = "getFun()">check</a></td>        
      <td><a data-role = "button" href = "getFun()">check</a> </td> 
    </tr> 
    <tr> 
      <td><a data-role = "button" href = "getFun()">check</a></td> 
      <td><a data-role = "button" href = "getFun()">check</a></td> 
    </tr> 
</table> 

table{ 
    border-spacing:0; 
    border-collapse:collapse; 
} 

但它不适合我。请告诉我解决方案。我编辑了我的代码。请找到它

+0

问题不明确,给我你的问题 – Kushan

+0

哪个浏览器**的正确的图片和**版本您使用?你的实际HTML表格之前是否包含任何样式表?如果可以,请使用“Firebug”之类的工具来检查实际应用于表格的所有样式。 – Stephan

+0

我正在使用Safari浏览器。我也包括样式表.. – user25

回答