Google chrome a:visited background image not working

后端 未结 5 754
长发绾君心
长发绾君心 2020-11-27 08:05

(before I start I should say yes, I have done all the stupidity checks, yes the link is in my history and has been visited etc)

I\'m using Chrome version 6.0.472.63,

相关标签:
5条回答
  • 2020-11-27 08:35

    Same problem here. Changing background-position in a CSS Sprite on a:visited is working for me in Firefox 3.6 but not in Chrome 6.

    But probably soon it will stop working in Firefox too. (maybe for FF 4?)

    It's a privacy problem, and you can read here a Mozilla article about it (March 2010) http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/ And the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=147777#c160

    I think only possible solution is to use creatively the background-color instead of images.

    0 讨论(0)
  • 2020-11-27 08:39

    It's probably a security issue.
    Check this post on the mozilla security blog.
    I can certainly imagine how they would do it.

    0 讨论(0)
  • 2020-11-27 08:44

    You might need your single quotes around your img url... Browsers are funny about when they do care about quotes and when they don't....

    0 讨论(0)
  • 2020-11-27 08:45

    Chrome appears to have disabled css for :visited ( except for color ).

    This would be to prevent the history sniffing exploit.

    See http://www.azarask.in/blog/post/socialhistoryjs/

    0 讨论(0)
  • 2020-11-27 08:51

    This is done for security reasons, as it was possible to load a lot of different images and detect which links the user had visited, any property sending an specific request, or loading a specific resource, depending on what the user has visited is technically seen as a security issue, as it can leak personal interests of the user.

    https://blog.jeremiahgrossman.com/2006/08/i-know-where-youve-been.html

    0 讨论(0)
提交回复
热议问题