Reputation: 6707
Here is my css about a
element. All browser works well except IE8.
In IE8, all of my link's color change to $color-purple
, no matter whether they are clicked or not.
a {
cursor: pointer;
text-decoration: none;
color: $color-blue;
&:hover, &:focus {
color: $color-blue-dark;
}
&:visited {
color: $color-purple;
}
}
Anyone know how to fix it ?
Thanks!
Upvotes: 1
Views: 412
Reputation: 31
The :visited
pseudo class has been disabled to prevent "sniffing" for which sites a visitor has been to in the past; this was regarded as a privacy concern.
You could check the computed styles for a link and look at the color, if it had the :visited
color, you could infer that the user had been to that site before.
http://msdn.microsoft.com/en-us/library/ie/cc848869(v=vs.85).aspx
The problem might also be that you've visited the link destinations in the past? To test, clear your browser history.
Upvotes: 2