// 奇数行
.ant-table-tbody>tr:nth-child(odd)>td {
background-color: #222A39;
}
// 偶数行
.ant-table-tbody>tr:nth-child(even)>td {
background-color: #2A3240;
}
// 奇数行
.ant-table-tbody>tr:nth-child(odd)>td {
background-color: #222A39;
}
// 偶数行
.ant-table-tbody>tr:nth-child(even)>td {
background-color: #2A3240;
}
本文标题:ant design table隔行换色
本文链接:https://www.haomeiwen.com/subject/ydyclktx.html
网友评论