【问题标题】:padding problems between two coloumns in a row of a table表格行中两列之间的填充问题
【发布时间】:2015-02-22 06:00:39
【问题描述】:

如何在两个表格之间进行填充。 示例:

<table>
  <tr>
    <td></td>
    <!-- need space here -->
    <td></td>                      
  </tr>
</table>

【问题讨论】:

  • 您需要添加代码..并更好地解释您的问题。
  • @Jmh2013:代码在,但由于它没有与文本用空行分隔,因此被视为标记。我同意,更详细的解释会很棒。它仅在两个特定列之间吗?或者在任意两列之间?你怎么知道哪些列?等
  • 这可能对你有帮助:stackoverflow.com/questions/351058/…

标签: html css


【解决方案1】:

你可以在你的表中试试这个代码:-

<table cellspacing="15">
Add cellpacing in table to give space.

【讨论】:

    【解决方案2】:

    添加这个 css

    <head>
      <style>
        table {border-spacing: 0;}
      </style>
    </head>
    

    希望对你有帮助:)

    【讨论】:

      【解决方案3】:

      您可以添加第三个单元格并给它一个填充示例:

      <table>
       <tr>
          <td></td>
          <td style="padding:5px;">&nbsp;</td>
          <td></td>                      
       </tr>
      </table>
      

      【讨论】:

        猜你喜欢
        • 2021-01-13
        • 1970-01-01
        • 1970-01-01
        • 2015-03-07
        • 1970-01-01
        • 2020-03-31
        • 2012-07-20
        • 2020-09-16
        相关资源
        最近更新 更多