zebra stripes over riding my highlighting color

前端 未结 1 497
孤街浪徒
孤街浪徒 2021-01-26 11:35

I am using this code to navigate through keyboard in table grid. In my code I have not added this zebra stripes coding. If I add this zebra stripes is overriding my highlighting

1条回答
  •  执笔经年
    2021-01-26 12:09

    Try adding .tablesorter class to your CSS to make the selector more specific (thanks to Kobi for pointing it out) with something like this:

    .tablesorter tr.ui-selected td { background: #f77; }
    

    And to add a border something like this should work:

    .tablesorter tr.ui-selected { border: 1px solid black; }
    

    or more fancy:

    .tablesorter tr.ui-selected { border: 2px dashed red; }
    

    or something like that.

    0 讨论(0)
提交回复
热议问题