数据表:删除所有水平边框 [英] DataTable: Remove all horizontal borders
本文介绍了数据表:删除所有水平边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除所有水平边框,而仅去除偶数/奇数阴影?
这不起作用。
table.dataTable.row-border tbody th,
table.dataTable.row-边框td td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
border:none;
}
我也想删除顶部和底部黑色边框。
table.dataTable thead th {
border-bottom:0;
边框样式:无;
}
table.dataTable距{
border-top:0;
边框样式:无;
}
table.dataTable .no-footer {
border-bottom:0;
}
解决方案
您可以使用以下代码删除所有水平边框,仅去除偶数/奇数阴影:
datatable(mtcars [1:3,1:3] ,class ='stripe')
How do I remove all the horizontal borders to just the even/odd shading?
https://datatables.net/examples/styling/stripe.html
This doesn't work.
table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
border: none;
}
I would also like to remove the top and bottom black borders. This doesn't seem to have any effect.
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;
}
解决方案
You can use the following code to remove all the horizontal borders to just the even/odd shading:
datatable(mtcars[1:3,1:3], class = 'stripe')
这篇关于数据表:删除所有水平边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文