Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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:删除表中的特定行边框_Css_Shiny - Fatal编程技术网

Css R:删除表中的特定行边框

Css R:删除表中的特定行边框,css,shiny,Css,Shiny,我已经在R/Shining中创建了一个表,其中有7行,其中第2行和第5行为空(如箭头所示) 我正试图通过css完全删除第2行和第5行中的所有垂直边框,并最终将表格显示为具有三个独立部分。表格id为Statistics I,这是我在css中的尝试: #StatisticsI table { width: 100%; border-collapse: collapse; border: none; text-align: center; } #Statistics

我已经在R/Shining中创建了一个表,其中有7行,其中第2行和第5行为空(如箭头所示)

我正试图通过css完全删除第2行和第5行中的所有垂直边框,并最终将表格显示为具有三个独立部分。表格id为Statistics I,这是我在css中的尝试:

#StatisticsI table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    text-align: center;
}

#StatisticsI td {
    padding: 8px;
    line-height: 7px;
    text-align: center;
    vertical-align: top;
    font-size: 80%;
    font-family: Calibri;
    font-weight: normal;
      border: 1.9px solid #2e3658;
}
#StatisticsI th {
    padding: 8px;
    line-height: 7px;
    text-align: center;
    vertical-align: top;
    font-size: 80%;
    font-family: Calibri;
    font-weight: bold;
    border: 1.9px solid #2e3658;
}



#StatisticsI tr:nth-child(3), 
#StatisticsI tr:nth-child(6) {
    font-size: 120%;
    border: none;
} 
最后一节是我试图实现这一点,但不幸的是,它没有

您可以用来删除特定行中的边框

td { border: 1px solid #000000; height: 10px; }

tr:nth-child(2) td, tr:nth-child(5) td {
    border: 0px !important;
}
小提琴: