首页 > 解决方案 > 如何在行之间插入间隙?

问题描述

我想在我的 ng2-smart-table 中的行之间有间隙, border-spacing这是行不通的。

我尝试ng-deep通过以下答案 使用https://github.com/akveo/ng2-smart-table/issues/504#issuecomment-395478716 但它不起作用。其他样式有效,但不是这个。

::ng-deep{
  .dark-table { // set a selector
      display: table;
      border-collapse: collapse;
      border-spacing: 6px;
      border-color: red;
      ...

标签: ng2-smart-table

解决方案


利用border-collapse: separate;


推荐阅读