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

前端 未结 10 1791
执念已碎
执念已碎 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:58

    I don't think there is a pure CSS way of achieving this. I think you would need to use JavaScript to get the color of the a and then set a:visited to that color and this probably wouldn't work in all browsers unless there was an a{color:#dea} specified.

提交回复
热议问题