x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
a:link {
7
text-decoration: none;
8
}
9
/* unvisited link */
10
11
a:visited {
12
text-decoration: none;
13
}
14
/* visited link */
15
16
a:hover {
17
text-decoration: underline;
18
}
19
/* mouse over link */
20
21
a:active {
22
text-decoration: underline;
23
}
24
/* selected link */
25
</style>
26
</head>
27
28
<body>
29
<p><b><a href="/css/" target="_blank">This is a link</a></b></p>
30
<p><b>注意:</b> hover必须在:link和 a:visited之后定义才有效.</p>
31
<p><b>注意:</b>active必须在hover之后定义是有效的.</p>
32
</body>
33
</html>