0

私の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;
}

しかし、それは私にとってはうまくいきません。解決策を教えてください。コードを編集しました。見つけてください

4

1 に答える 1

1
<table cellpadding="0" cellspacing="0">

http://jsfiddle.net/Curt/5rkpy/

于 2012-06-18T10:25:16.807 に答える