Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css r数据表(DT)边框宽度/颜色_Css_R_Datatables_Dt - Fatal编程技术网

Css r数据表(DT)边框宽度/颜色

Css r数据表(DT)边框宽度/颜色,css,r,datatables,dt,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; } 然而,我似乎无法理解如何更改列名下的边框,也无法更改正文第一行上的边框。如何做到这一点呢?以下css做到了这一

给定桌子

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;
}