首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

请教onmouseover怎么改变超链接的颜色

2012-02-23 
请问onmouseover如何改变超链接的颜色?aonmouseover ???[解决办法] a onmouseover this.style.color

请问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>

热点排行