html - 如何在 Bootstrap 表中的带边框的两行之间添加空格

标签 html twitter-bootstrap

table{ width: 100%;max-width: 100%;  margin-bottom: 20px;border:solid 1px #000; border-collapse: collapse;}

tbody tr{border:2px solid #256ac4;}
td{    color: #8d9097; vertical-align: top; font-size: 14px;}
th{text-align:left}
<table>
<thead>
     <th>A</th>
     <th>B</th>
     <th>C</th>
</thead>
<tbody>
  <tr>
    <td>AA</td>
     <td>AA</td>
      <td>AA</td>
  </tr>
 <tr>
    <td>AA</td>
     <td>AA</td>
      <td>AA</td>
  </tr>
 <tr>
    <td>AA</td>
     <td>AA</td>
      <td>AA</td>
  </tr>

</tbody>

</table>

我已经对此进行了编码,预期结果在图像中,但我无法在两行之间添加空间,如果我使用 border-collapse:seperate 那么空间即将出现但边界不适用。

https://ibb.co/b9WDn5

最佳答案

在父表中,尝试设置

border-collapse:separate; 
border-spacing:5em;

尝试引用this .

关于html - 如何在 Bootstrap 表中的带边框的两行之间添加空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45342816/

相关文章:

javascript - 使用 JavaScript 启用 href

javascript - 不使用 JQuery 在数据库中存储图像

javascript - 如何根据屏幕宽度将我的导航栏类更改为另一个导航栏类?

css - 相同的 Bootstrap 列以不同方式对齐/格式化

twitter-bootstrap - 使用 bootstrap 使 contenteditable 响应式

javascript - 如何使用 JavaScript 使 DIV 可见和不可见?

html - 推特按钮没有出现

Css bootstrap 表单(rails 新手)

HTML - 文本后加下划线并调整表格大小

javascript - 悬停时 Bootstrap 下拉,但主下拉仍然是一个链接