Do you use :visited on links?
Do you use :visited on links?
你在链接上使用 :visited 属性吗?
I’ve always made the :visited attribute for hyperlinks look the same as links that haven’t been visited, and it seems that it’s the default behaviour across the web.
我一直让超链接的 :visited(已访问)属性看起来与未访问的链接相同,这似乎也是整个网络上的默认行为。
I’ve never really given it much thought, until I actually used :visited in anger. My feed reader of choice, Miniflux uses the :visited attribute properly, making visited links purple.
我从未真正深入思考过这个问题,直到我真正开始“动真格”地使用 :visited。我首选的 RSS 阅读器 Miniflux 正确地使用了 :visited 属性,将已访问的链接显示为紫色。
When reading posts from the hundreds of blogs I follow via RSS, I find it really useful to see if I’ve already visited a link within a post. So with that in mind, I’ve decided to change the CSS on this site slightly, and visited links are now purple. It’s subtle, but obvious enough, I think: 当阅读我通过 RSS 关注的数百个博客文章时,我发现能够一眼看出是否已经点击过文章内的链接非常有用。考虑到这一点,我决定稍微修改一下本站的 CSS,现在已访问的链接会显示为紫色。我认为这种变化很微妙,但又足够明显:
If you want to do something like this yourself, the CSS is very simple: 如果你也想实现类似的效果,CSS 代码非常简单:
a { color: #3995F7; }
a:visited { color: #8839F7; }
Do you use the :visited attribute on your blog? I feel like I don’t see it used very often around the web.
你在自己的博客上使用 :visited 属性吗?我觉得在网络上似乎并不常见。