简体   繁体   English

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

[英]r DataTables (DT) border width / colour

Given the table 鉴于表

library(DT)

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

I can adjust the footer border using the following css 我可以使用以下css调整页脚边框

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

However I can't seem to understand how I can change the border under the column names, nor the border just over the first row of the body. 但是我似乎无法理解如何更改列名下的边框,也不能更改正文第一行上的边框。 How could this be done? 怎么可以这样做?

The following css did the trick: 以下css做了诀窍:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM