Nk *_* SP 8 javascript css jquery-datatables
我正在使用JQuery数据表,
我需要更改鼠标上的行的颜色事件(highligthed行)
我试过:
table.display tr.even.row_selected td {
background-color: red;
}
table.display tr.odd.row_selected td {
background-color: blue;
}
Run Code Online (Sandbox Code Playgroud)
reu*_*lab 13
试试这个CSS:
table.display tbody tr:nth-child(even):hover td{
background-color: red !important;
}
table.display tbody tr:nth-child(odd):hover td {
background-color: blue !important;
}
Run Code Online (Sandbox Code Playgroud)