tr:hover not working

后端 未结 13 1673
长发绾君心
长发绾君心 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:46

    Like @wesley says, you have not closed your first . You opened it two times.

    1a
    2b
    3c

    CSS:

    .list1 tr:hover{
        background-color:#fefefe;
    }
    

    There is no JavaScript needed, just complete your HTML code

提交回复
热议问题