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

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

    I don't think there's a pure CSS solution. Usually you would pick a color, and set both a:link and a:visited that same color.

    I tried {color: inherit} but that was useless.

    This jQuery solution works great though.

    
    
        
            
            
        
        
            Google
            No where you've been
        
    
    

提交回复
热议问题