一个相当简单的问题。

jericho3164 2004-11-18 12:24:18
网页上有个文本链接,我想单独对他设置颜色,网页默认的链接颜色是红色,但是我想让该链接平时显示红色,鼠标移上去就变成暗红色。怎么办?
...全文
58 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
IQ250 2004-11-18
  • 打赏
  • 举报
回复
好好研究一下样式表
webmm 2004-11-18
  • 打赏
  • 举报
回复
<html>
<head>
<style type="text/css">
A.link2:link {color: #009900; text-decoration: underline;}
A.link2:visited {color: #009900; text-decoration: underline;}
A.link2:hover {color: #6666FF; text-decoration: underline;}

A:link {color: #330000; text-decoration: underline;}
A:visited {color: #330000; text-decoration: underline;}
A:hover {color: #CC0000; text-decoration: underline;}
</style>
</head>

<body>
<a href="#">aaaaaaaaa</a> <a class="link2" href="#">bbbbbbbb</a>
</body>
</html>
jericho3164 2004-11-18
  • 打赏
  • 举报
回复
我是说怎么弄这个效果,并不是说怎么引用!
8080 2004-11-18
  • 打赏
  • 举报
回复
onmouseout='this.className="暗红样式";'

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧