用于浏览器收藏夹中页面链接的 CSS 伪类
我可以使用 a:visited
设置已访问链接的样式。我希望对浏览器收藏夹中的页面链接进行同样的操作。
我想知道 Firefox 是否有一个伪类来实现这一点。
然后我可以使用插件“Stylish”来设计它们。
I can style visited links with a:visited
. I want to the same for links to pages I have in my browser favorites.
I wonder if Firefox has a pseudo-class for that.
Then I could style them with the addon "Stylish".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它不存在是有充分理由的:它可以与
getCompulatedStyle
结合使用来侵犯您的隐私(使用 javascript 报告您可能已添加书签的内容)。这也是
:visited
选择器的问题,Mozilla 已对其进行了纠正:http://hacks.mozilla.org/2010/03/privacy-lated-changes-coming-to-css-vistited/
我想他们可以对
:bookmarked
或其他东西做同样的事情,但到目前为止这还不存在。There's a good reason this doesn't exist: It can be used in conjunction with
getComputedStyle
to invade your privacy (using javascript to report what you may have bookmarked).This was also a problem with the
:visited
selector and Mozilla rectified it:http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/
I suppose they could do the same for
:bookmarked
or something, but as of now this doesn't exist.我在 此 Mozilla 特定 CSS 扩展列表中找不到任何内容 这就是你想要的,所以很可能不存在这样的伪类。
不过,标准 CSS 中肯定不存在这样的伪类,但我想您已经知道了,因为您具体询问的是 Firefox 扩展。
I could not find anything in this list of Mozilla-specific CSS extensions that does what you want, so most likely there isn't such a pseudo-class.
There is definitely no such pseudo-class in standard CSS, though, but I think you already know that since you're asking specifically about a Firefox extension.