请问onmouseover如何改变超链接的颜色?
<a onmouseover= "???
------解决方案-------------------- <a onmouseover= "this.style.color= '#FF0000 ' ">
------解决方案--------------------自己看下,不需要用鼠标移动事件的:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<title> 链接 </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<style>
a{
text-decoration:none;
display:block;
padding:20px;
float:left;
background-color:#BBBBBB;
color:#FFFFFF;
}
a:hover{
background-color:#4075b0;
}
</style>
</head>
<body>
<a href= "# "> 链接A </a>
</body>
</html>