r DataTables (DT) 边框宽度/颜色
r DataTables (DT) border width / colour
鉴于 table
library(DT)
datatable(
iris,
style = "default",
filter = "top",
class = "hover stripe compact"
)
我可以使用以下方法调整页脚边框 css
table.dataTable.no-footer {
border-bottom: 1px solid #ddd;
}
但是我似乎无法理解如何更改列名称下方的边框,也无法更改正文第一行上方的边框。这怎么可能?
下面的 css 成功了:
table.dataTable thead th, table.dataTable thead td {
border-bottom: 1px solid #ddd;
}
鉴于 table
library(DT)
datatable(
iris,
style = "default",
filter = "top",
class = "hover stripe compact"
)
我可以使用以下方法调整页脚边框 css
table.dataTable.no-footer {
border-bottom: 1px solid #ddd;
}
但是我似乎无法理解如何更改列名称下方的边框,也无法更改正文第一行上方的边框。这怎么可能?
下面的 css 成功了:
table.dataTable thead th, table.dataTable thead td {
border-bottom: 1px solid #ddd;
}