简体   繁体   English

如何使用CSS或JS使访问的链接在悬停时更改颜色

[英]How do I make a visited link change color on hover using CSS or JS

How do I make a visited link change color on hover using CSS or JS 如何使用CSS或JS使访问的链接在悬停时更改颜色

Thanks for the help 谢谢您的帮助

a {
   color: blue;
}

a:visited {
   color: red;
}

If I understand your question correctly, you would style it using 如果我正确理解你的问题,你可以使用它

a:visited:hover {
    styles go here
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用javascript动态更改访问链接的颜色? - how to change visited link color dynamically using javascript? 如何更改访问链接的背景颜色 - How to change background color for visited link 当我使用鼠标 hover 使用 CSS 时,我试图让按钮中的文本更改颜色 - I am trying to make the text in a button change color when I hover over in with the mouse using CSS 单击时如何更改链接按钮的颜色(访问的链接)? - How to change color of linkbutton when clicked(visited link)? 如何在Java脚本dom中更改已访问锚链接的颜色 - How to change the color of visited anchor link in java script dom 如何在没有插入符号的情况下使用 HTML、CSS 和 JS 在用户悬停时制作书写动画(文本更改) - How can I make a writing animation(change of text) on a users hover with HTML, CSS, and JS, just without the caret 使用JQuery或CSS,如何在悬停时缓慢更改框的颜色? - Using JQuery or CSS how can I change the color of a box slowly on hover? 当我的链接被访问时,如何显示一个表单? - How do I make one form show up when my link is visited? 如何在悬停时更改另一个链接的颜色? - How to change the color of another link on hover? 如何在此js中更改鼠标悬停时星星的颜色??? - how can i change the color of the stars on mouse hover in this js???
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM