什么时候应用于超链接的:visited伪类?(when is the :visited pseudo

编程入门 行业动态 更新时间:2024-10-24 17:22:46
什么时候应用于超链接的:visited伪类?(when is the :visited pseudo-class applied to a hyperlink)

我有一些关于:visited伪类的问题:

根据浏览器决定什么时候应该将:visited伪类应用于超链接? 他们是从浏览器的页面历史中获取这些信息,还是按照会话或其他地方存储? 是否有可能(对于网页开发人员)来控制:visited伪类应该应用于超链接多长时间?

(注意:我没有试图解决实际问题,我只是想知道它是如何工作的)

I have some questions about the :visited pseudo-class:

Based on what do browsers decide when the :visited pseudo-class should be applied to a hyperlink? Do they take this information from the browser's page history or is it stored per-session or somewhere else? Is it possible (for the developer of a web page) to control for how long the :visited pseudo-class should be applied to hyperlinks?

(Note: I'm not trying to solve an actual problem, I'm just wondering how it works)

最满意答案

它基于浏览器历史记录访​​问链接时应用。 清除历史记录将清除访问状态。 就我所知,没有“超时”。

It's applied when a link has been visited based on the browser history. Clearing your history will clear the visited state. There's no "timeout", as far as I know.

更多推荐

本文发布于:2023-07-22 10:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219197.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:什么时候   应用于   超链接   pseudo   visited

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!