首页htmlaHTML Element Style - 如何用于悬停和访问状态的样式锚点

HTML Element Style - 如何用于悬停和访问状态的样式锚点

我们想知道如何用于悬停和访问状态的样式锚点。


<!DOCTYPE html>
<html>
<head>
<style type="text/css">
a {
  font-weight: bold;
  color: #ff0000;
  text-decoration: none;
}

a:hover {
  color: #FF9900;
  text-decoration: underline;
  background-color: #f9f0f0;
}

a:visited {
  color: #990000;
}
</style>
</head>

<body>

  <a href="">A</a>
  <a href="">B</a>
  <a href="">C</a>

</body>
</html>