表格边框不显示

use*_*306 0 html css less

我正在尝试设计表格的样式,但边框没有显示。我以前从未发生过这种情况,所以我不知道该怎么办。

这是我的桌子:

<table class="table">
  <thead>
    <tr>
      <th>Dessert (100g serving)</th>
      <th>Calories</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Dessert (100g serving)</td>
      <td>Calories</td>
    </tr>
  </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

这是我的较少:

@dark-text: rgba(0,0,0,0.87);
@dark-text-secondary: rgba(0,0,0,0.54);
@dark-text-disabled: rgba(0,0,0,0.26);

.table {
    z-index: 10;

    thead {
        tr {
            border-bottom: 3px solid @dark-text-disabled;
            z-index: 10;

            th {
                color: @dark-text-secondary;
                z-index: 10;
            }
        }
    }

    tbody {
        tr {
            border-bottom: 3px solid @dark-text-disabled;
            z-index: 10;

            td {
                z-index: 10;
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

http://codepen.io/anon/pen/JdOaVO

ET-*_*-CS 5

border-bottom规则移至thtd标签或对 .table使用折叠边框模型( )border-collapse: collapse;

.table {
    border-collapse: collapse;
}
Run Code Online (Sandbox Code Playgroud)

http://codepen.io/anon/pen/BNmOgg