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

前端 未结 5 1845
轮回少年
轮回少年 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:23

    I'm not sure of the technical reason here, but this only seems to work for me if I add a background-color for a:

    a { background-color: #ffffff; }

    a:visited { background-color: #ff0000; }

提交回复
热议问题