Why won't my visited link have a background color?

前端 未结 5 1831
轮回少年
轮回少年 2021-01-18 23:47

It seems that a:visited won\'t work in showing background color on my links.

http://jsfiddle.net/davestein/D2srA/

What super simple thing am I missing?

5条回答
  •  时光说笑
    2021-01-19 00:11

    it doesn't work for me if I do it like you do. But if I add every pseudo-class it works. E.g.:

    a:link {color:#FF0000;}      /* unvisited link */
    a:visited {color:#00FF00;}  /* visited link */
    a:hover {color:#FF00FF; background-color:black;}  /* mouse over link */
    a:active {color:#0000FF;}  /* selected link */
    

提交回复
热议问题