tr:hover not working

后端 未结 13 1663
长发绾君心
长发绾君心 2020-12-08 09:27

I\'m trying to highlight (change background color) of the entire row when the mouse is hovering on a table row. I searched through the Net and it should be working, but it d

13条回答
  •  一向
    一向 (楼主)
    2020-12-08 09:47

    Recently I had a similar problem, the problem was I was using background-color, use background: {anyColor}

    example:

    tr::hover td {background: red;}
    

    This works like charm!

提交回复
热议问题