私のhtmlページには1つのテーブルがあり、すべての行に2つのボタンがあり、行と列の間にスペースを入れずに、つまり各行の列の間にスペースを入れず、テーブルの2つの行の間にスペースを入れずに表示したいと思います。どうすればこれを入手できますか?私は試してみました:
<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;
}
しかし、それは私にとってはうまくいきません。解決策を教えてください。コードを編集しました。見つけてください