CSS 允许修改 a:visited 链接的样式,但是,如果后代节点的链接已经被访问过,是否可以从 DOM 中删除元素?
最佳答案
研究这个主题,我找到了 this article ,其中指出:
Not all pseudo-class selectors are allowed. A selector made up of :visited or :link is ignored and no elements are found.
出于隐私方面的考虑,:visited 伪类的使用受到限制,否则恶意站点可能会知道您访问了哪些给定的 URL。
关于javascript - 如果已访问后代节点的链接,是否可以从 DOM 中删除元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49768507/