2017-03-01 128 views

回答

2

我不知道,如果你發現任何地方你的答案,但你正在尋找的CSS是這樣的:

body .ui-datatable .ui-datatable-data tr.ui-datatable-even.ui-state-highlight { 
    /*background-color handles the color of the highlighted row*/ 
    /*color sets the color of the text*/ 

    background-color: #0275d8; 
    color: #ffffff; 
    border-color: #0267bf;} 

和:

body .ui-datatable .ui-datatable-data tr.ui-datatable-odd.ui-state-highlight { 
    background-color: #0275d8; 
    color: #ffffff; 
    border-color: #0267bf;} 

只需粘貼在自己的CSS文件,您可以更改高亮顏色,邊框顏色和文本顏色。我不確定這是否是最好的做法,但我上週就是這樣做的,這就是我如何運作的。