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

前端 未结 10 1790
执念已碎
执念已碎 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条回答
  •  面向向阳花
    2021-02-03 17:59

    Danny Robers script works for me in Firefox and Chrome (not sure about IE).

    FWIW, the special value HyperlinkText would have been the "standard" way to do what you want, but it was dropped from CSS3 sometime in spring 2003.

    It looks like Firefox is the only browser that started implementing it, because the following works for Firefox:

    a:visited { color: -moz-hyperlinktext; }

提交回复
热议问题