如何使链接访问后不改变颜色? [英] How to make link not change color after visited?
本文介绍了如何使链接访问后不改变颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个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;
}
I have this css:
a:visited
{
text-decoration: none;
decoration: none;
}
After a link is visited it changes color.
It is happening to the "Browse All Problems" link on the bottom of the right side of this page: http://www.problemio.com
Thanks!
解决方案
Text decoration affects the underline, not the color.
To set the visited color to the same as the default, try:
a {
color: blue;
}
Or
a {
text-decoration: none;
}
a:link, a:visited {
color: blue;
}
a:hover {
color: red;
}
这篇关于如何使链接访问后不改变颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文