html - 为什么将标签的已访问伪类应用于未访问的链接?
问题描述
为什么访问之前的链接已经有紫色?你能解释一下为什么会这样吗?下面我提供HTML代码。
<!DOCTYPE html>
<html>
<head>
<style>
/* unvisited link */
a:link {
color: green;
}
/* visited link */
a:visited {
color:purple;
}
/* mouse over link */
a:hover {
color: red;
}
/* selected link */
a:active {
color: yellow;
}
</style>
</head>
<body>
<p>Mouse over and click the link: <a href="https://xjedi.com/index.jsp?com=ob&id=8271">XJEDI</a></p>
</body>
</html>
解决方案
推荐阅读
- nginx - 重定向时nginx www域不起作用
- javascript - 如何在公共网页中取消绑定 java 脚本中的点击侦听器?
- python - PyCharm - venv 没有被激活
- mongodb - 使用 Batch 脚本执行 Mongodb 命令
- python - python-telegram-bot 在对话处理程序之间传递参数
- java - Android 处理 | save() "文件包含路径分隔符"
- python - 如何停止 pygame 窗口冻结?
- javascript - 语法错误:Vuejs 中“...”上的意外标记
- node.js - 如何使用 Elasticsearch 查询多个集合
- ios - `MPMusicPlayerController.systemMusicPlayer.nowPlayingItem` 只有在音乐应用重新打开后才改变状态