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

请问一简单有关问题?

2012-02-25 
请教一简单问题???ahref http://www.kill.com/help/help_detail.asp?bigclassid20061123143126&id212

请教一简单问题???
<a   href= "http://www.kill.com/help/help_detail.asp?bigclassid=20061123143126&id=212 "   target= "_blank "   style= "font-size:12px ";   color= "#FF0000> 包印通会员分类及会员的服务 </a>
现在链接文字一直是红的
我现在想实现当光标放到链接上时,就显示成绿色,且带下划线,移开就变成原来的红色,无下划线,请问style如何定义谢谢?

[解决办法]
a {
... ...
}
a:hover {
... ...
}
[解决办法]
a {color:#f00;text-decoration:none;}
a:hover {color:#050;text-decoration:underline;}
[解决办法]
<STYLE>
.a-red {color: #ff0000;
text-decoration: None;
}
.a-red:hover {color: green;
text-decoration: None;
}
</STYLE>

<a href= "http://www.kill.com/help/help_detail.asp?bigclassid=20061123143126&id=212 " target= "_blank " class= "a-red ">

热点排行