案例:CSS案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
a:link,a:visited
6
{
7
display:block;
8
font-weight:bold;
9
font-size:14px;
10
font-family:Verdana, Arial, Helvetica, sans-serif;
11
color:#FFFFFF;
12
background-color:#98bf21;
13
width:120px;
14
text-align:center;
15
padding:4px;
16
text-decoration:none;
17
}
18
19
a:hover,a:active
20
{
21
background-color:#7A991A;
22
}
23
</style>
24
</head>
25
26
<body>
27
<a href="/" target="_blank">W3xue</a>
28
</body>
29
</html>