How do I change the hover over color for a hover over table in Bootstrap?

前端 未结 11 1920
情歌与酒
情歌与酒 2021-01-30 02:58

I have a table with class \'table-hover\'. The default hover over color is a white / light grey. How do I change this color?

I\'ve tried overwriting the default by ad

11条回答
  •  攒了一身酷
    2021-01-30 03:19

    Instead of changing the default table-hover class, make a new class ( anotherhover ) and apply it to the table that you need this effect for.

    Code as below;

    .anotherhover tbody tr:hover td { background: CornflowerBlue; }
    

提交回复
热议问题