Why I have this strange CSS behavior on the a:hover tag?

后端 未结 5 1199
误落风尘
误落风尘 2021-01-28 06:28

I have a problem with this custom theme on wich I am working on: http://www.asper-eritrea.com/

The problem is that when you pass the mouse over a link (for example the t

5条回答
  •  既然无缘
    2021-01-28 06:58

    The comma separates complete selectors. Your code is equivalent to:

    .widget-sidebar ul li a {
        color: #f1b000;
    }
    
    a:hover {
        color: #f1b000;
    }
    

    You need to specify .widget-sidebar ul li for both parts of it,

提交回复
热议问题