乐透乐博彩论坛3d字迷:blogcn代码问题:点击前后文字不变色可以么?

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 16:02:53
点击前和点击后不变色行不行啊?

我现在点击前的连接文字是灰色,点开后,那个链接那里就变成了紫色~~~~难看死了~~~~可不可以设置成,点完了以后不变颜色呢?

还有~~~可不可以设置,把鼠标只要一移动到链接上,那个链接就自动变成了灰色的?
我现在想,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;
}

这样定义样式表就可以实现你的功能了,不会样式表的话,可以把下面的代码加到你的页面中<head></head>标签里:

<style type="text/css">
<!--

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;
}

-->
</style>

这个满足你的三个条件:

1、移动到链接上的时候,不要有下滑线。
2、移动到链接上的时候,链接文字变成灰色。
3、打开过以后的链接文字不变色。

可以修改css颜色的