div background color, to change onhover

后端 未结 10 1295
轮回少年
轮回少年 2020-11-27 04:54

I\'m trying to make a div\'s background color change on mouse over.

the div {background:white;}
the div a:hover{background:grey

10条回答
  •  旧巷少年郎
    2020-11-27 05:35

    Just make the property !important in your css file so that background color doesnot change on mouse over.This worked for me.

    Example:

    .fbColor {
        background-color: #3b5998 !important;
        color: white;
    }
    

提交回复
热议问题