gpt4 book ai didi

javascript - 当目标为空白时,链接的颜色不会更改为已访问

转载 作者:行者123 更新时间:2023-11-28 09:43:08 25 4
gpt4 key购买 nike

当目标设置为“_blank”时,我的链接不会更改为默认访问的颜色。我该如何修复它(我想在新窗口中打开链接)?有人有这方面的经验吗?

最佳答案

我想说,在您重新加载原始页面后,您的链接会改变颜色,还是不会?

如果您正在寻找解决方法,这将帮助您将链接标记为 js 访问过的,here是一个线程。

Strictly speaking, there's no such thing as a "visited" state for individual links. It's the URLs themselves that are interpreted as "visited" by the browser. Any links that point at a URL in the browser's history will receive styling as defined by the :visited pseudo-style in your CSS.

关于javascript - 当目标为空白时,链接的颜色不会更改为已访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12139411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com