什么时候应用于超链接的: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.
更多推荐
发布评论