CSS3 color transition not working in Chrome

后端 未结 9 1169
长情又很酷
长情又很酷 2020-12-15 05:02

The links in the left menu in this website have a CSS3 transition property of the color, which changes on mouse hover. It\'s not working in Chrome 16 or 17 (the

9条回答
  •  感动是毒
    2020-12-15 05:26

    I still ran into the same issue and found a solution that worked for me.

    I was able to fix it by using the :link pseudo class like this:

    #menu a, #menu a:link {
      color: gray;
      transition: color 0.5s;
    }
    
    #menu a:hover {
      color: black;
    }
    

提交回复
热议问题