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

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

    a.one:link {
        color:#996600;
        background-color:transparent; 
        text-decoration:underline;  
    }
    
    a.one:hover { 
        color: red;
        background-color: transparent;
        text-decoration: underline; 
    }
    
    a.one:visited {
        color: #996600;
        background-color: transparent;
        text-decoration: underline
    }
    
    a.one:hover { 
        color: red;
        background-color: transparent;
        text-decoration: underline; 
    }
    

提交回复
热议问题