烟台保健酒:blogcn代码问题:关于鼠标划过链接时颜色改变的代码

来源:百度文库 编辑:高考问答 时间:2024/05/12 20:27:49
我现在想,要这几个的代码~拜托~~~

1、移动到链接上的时候,不要有下滑线。

2、移动到链接上的时候,链接文字变成灰色。

3、打开过以后的链接文字不变色。

这样就可以:

a:link {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a:visited {
font-size: 12px;
color: #000000;
text-decoration: none;
}
a:hover {
font-size: 12px;
color: #999999;
text-decoration: underline;
}

A { text-decoration: none }
A:link { color: #000000; text-decoration: none }
A:visited { color: #000000; text-decoration: none }
A:active { color: #999999; text-decoration: none }
A:hover { color: #999999; text-decoration: none }