css - 设计 :visited pseudo element 的样式

标签 css

我可以将哪些样式应用于 :visited 链接? 似乎只有颜色有效。

我了解隐私问题。是否有一种非侵入式的样式设置方式:访问过的链接?

最佳答案

You will still be able to visually style visited links, but there are now limits on what styles you can use. Only the following properties can be applied to visited links:

  • color
  • background-color
  • border-color (and its sub-properties)
  • outline-color
  • The color parts of the fill and stroke properties

MDC - Privacy and the :visited selector

关于css - 设计 :visited pseudo element 的样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6319109/

相关文章:

html - 如何在bootstrap中将同一行中的svg图标和文本内容对齐到右侧(右对齐)

javascript - Twitter Bootstrap Carousel 自定义 - 外部导航控件和黑色边框

html - 图像上的半透明颜色层?

html - 如何使网页高度适合屏幕高度

html - Bootstrap 4 模式在触发后不起作用

javascript - 可点击列表元素上的按钮

html - 当字体大小发生变化时,将 "border-radius: 100%;"作为理想圆圈

javascript - 在wordpress中禁用移动 View 的js

javascript - 如何使用 javascript 对象在属性中使用悬停?

html - 全屏谷歌地图背景 div 与 CSS