r DataTables(DT)边框宽度/颜色

时间:2017-06-21 10:32:39

标签: css r datatables dt

给出表格

library(DT)

datatable(
  iris,
  style = "default",
  filter = "top",
  class = "hover stripe compact"
)

我可以使用以下css调整页脚边框

table.dataTable.no-footer {
    border-bottom: 1px solid #ddd;
}

但是我似乎无法理解如何更改列名下的边框,也不能更改正文第一行上的边框。怎么可以这样做?

1 个答案:

答案 0 :(得分:0)

以下css做了诀窍:

table.dataTable thead th, table.dataTable thead td {
    border-bottom: 1px solid #ddd;
}
相关问题