<html>
<head>
<title>CSS伪类 pseudo-class</title>
<style type="text/css">
a.c1:link 
{color: #FF0000}     /* 未被访问的链接 红色 */
a.c1:visited 
{color: #00FF00}  /* 已被访问过的链接 绿色 */
a.c1:hover 
{color: #FFCC00}   /* 鼠标悬浮在上的链接 橙色 */
a.c1:active 
{color: #0000FF}   /* 鼠标点中激活链接 蓝色 */
</style>
</head>

<body>

<p><class = "c1" href = "http://www.blabla.cn">布啦布啦网站 - 网页教程与代码的中文站点</a></p>

<p><href = "http://www.blabla.cn/wow/index.html">魔兽世界中的可爱玩家</a></p>

</body>
</html>

相关文章:

  • 2021-07-05
  • 2021-09-16
  • 2021-07-18
  • 2021-07-28
  • 2021-12-04
  • 2021-09-01
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案