我有这个 CSS:
a:visited
{
text-decoration: none;
decoration: none;
}
访问链接后,它会改变颜色。
此页面右侧底部的“浏览所有问题”链接发生了这种情况:http://www.problemio.com
谢谢!
最佳答案
文本装饰影响下划线,而不是颜色。
要将访问的颜色设置为与默认颜色相同,请尝试:
a {
color: blue;
}
或者
a {
text-decoration: none;
}
a:link, a:visited {
color: blue;
}
a:hover {
color: red;
}
关于html - 如何使链接在访问后不改变颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8188060/