gpt4 book ai didi

r - 数据表 : Remove all horizontal borders

转载 作者:行者123 更新时间:2023-12-01 21:58:56 25 4
gpt4 key购买 nike

如何删除所有水平边框,仅保留偶数/奇数阴影?

enter image description here

https://datatables.net/examples/styling/stripe.html

enter image description here

这不起作用。

table.dataTable.row-border tbody th, 
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
border: none;
}

我还想删除顶部和底部的黑色边框。这似乎没有任何效果。

table.dataTable thead th {
border-bottom: 0;
border-style: none;
}
table.dataTable tfoot th {
border-top: 0;
border-style: none;
}
table.dataTable .no-footer {
border-bottom: 0;
}

最佳答案

您可以使用以下代码删除所有水平边框,仅保留偶数/奇数阴影:

datatable(mtcars[1:3,1:3], class = 'stripe')

enter image description here

关于r - 数据表 : Remove all horizontal borders,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52248958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com