Set visited link color to whatever the color of un-visited link is (P.S. not the usual question)

前端 未结 10 1768
执念已碎
执念已碎 2021-02-03 16:59

I need to set the a:visited CSS to whatever color the normal a is set to.

What I want to be able to tell the browser is, for the visited links, use the same

10条回答
  •  -上瘾入骨i
    2021-02-03 17:46

    Nevermind this. See my other answer for something more specifically relevant to the asker's question.

    I do this:

    a, a:visited { color:#4CA1F6; }
    a:hover      { color:#4CB6E1; } a:active  { color:#0055AA; }
    

    Now that this thread has me thinking though, and I've made the following improvements to my method:

    a:link, a:visited { color:#4CA1F6; }
    a:hover, a:focus  { color:#4CB6E1; } 
    a:active          { color:#0055AA; }
    

提交回复
热议问题