删除 twitter bootstrap 中的行

新手上路,请多包涵

我正在将 twitter bootstrap 用于我被迫做的一些网络应用程序(我不是网络开发人员),但我找不到禁用表格行行的方法。

Bootstrap 文档 中可以看到,默认的表格样式包含行。

问候,

原文由 w00t 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 362
2 个回答

将此添加到您的主 CSS 中:

 table td {
    border-top: none !important;
}

将此用于较新版本的引导程序:

 .table th, .table td {
     border-top: none !important;
 }

原文由 Andres Ilich 发布,翻译遵循 CC BY-SA 3.0 许可协议

在 Bootstrap 3 中,我添加了一个 table-no-border 类

.table-no-border>thead>tr>th,
.table-no-border>tbody>tr>th,
.table-no-border>tfoot>tr>th,
.table-no-border>thead>tr>td,
.table-no-border>tbody>tr>td,
.table-no-border>tfoot>tr>td {
  border-top: none;
}

原文由 dex412 发布,翻译遵循 CC BY-SA 3.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题