<head>
<style>
a.a:hover{color:red}
</style>
</head><a href="#" class=a>hello</a>
<a href=# onmouseover="style.color='red'" onmouseout="style.color=''">hello</a>
<style>
a.a:hover{color:red}
</style>
</head><a href="#" class=a>hello</a>
<a href=# onmouseover="style.color='red'" onmouseout="style.color=''">hello</a>
这是一个
还有可以定义样式也可以得到相同的效果。
a:hover {position:relative;top:1px;left:1px;text-decoration:underline overline;}
a {text-decoration:none;}
</style>
<a href=# onmouseover="style.color='red'" onmouseout="style.color=''">hello</a>