opacity a:visited

前端 未结 2 519
心在旅途
心在旅途 2020-12-20 23:06

I can\'t get opacity to work on a:visited hyperlinks in firefox or IE

If I set the background color of a:visited it will work fine, but the opactity will not set.

相关标签:
2条回答
  • 2020-12-20 23:46

    Since 2010, Mozilla browser limit the CSS properties that can be used to style visited links to : - color, - background-color, - border-*-color - outline-color - and the color parts of the fill and stroke properties.

    For any other parts of the style for visited links, the style for unvisited links is used instead. In addition, for the list of properties you can change above, you won’t be able to set rgba() or hsla() colors or transparent on them.

    Source : http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/

    0 讨论(0)
  • 2020-12-20 23:59

    SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.

    This from IE's Developer Tools console. I'm pretty sure Firefox's shows a similar error.

    Sorry. Not much can be done there.

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