一个关于链接的简单问题

liuqiang_zh 2003-01-14 08:52:42
一个页面如何实现
标题的链接按如下显示:
A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff3300;
text-decoration: underline;

}
其他内容的链接按如下显示:

A:link {
COLOR: #ffffff; TEXT-DECORATION: none
}
A:visited {
COLOR: #ffffff; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff3300;
text-decoration: underline;

}
...全文
49 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuqiang_zh 2003-01-27
  • 打赏
  • 举报
回复
在新的文件可以但我加入我已做好的文件里就是不行 不知道是什么原因
zzmailzz 2003-01-17
  • 打赏
  • 举报
回复
使用不同的类就可以了~
fason 2003-01-16
  • 打赏
  • 举报
回复
还是先看看css吧
gamebill 2003-01-15
  • 打赏
  • 举报
回复
楼上都说了,使用class
fj47 2003-01-15
  • 打赏
  • 举报
回复
<style type="text/css">
.GF { font-size: 12px; color: #000000; text-decoration: none}
.gf a:link { font-size: 12px; color: #FF6699; text-decoration: none}
.gf a:hover { color: #FF9900; text-decoration: none}
.gf a:active { color: #00FF00; text-decoration: none}

.w2 { font-size: 12px; text-decoration: none; color: #990000}
.w2 a:link { color: #990000; text-decoration: none}
.w2 a:hover { color: #FFCC66; text-decoration: none}
.w2 a:active { color: #339900; text-decoration: none}

</STYLE>
<A HREF="#" CLASS="GF">11111111111111</A><BR>
<A HREF="#" CLASS="W2">22222222222222</A>
fj47 2003-01-15
  • 打赏
  • 举报
回复
都对啦
flashasp 2003-01-14
  • 打赏
  • 举报
回复
<STYLE>
.GF { font-size: 12px; color: #000000; text-decoration: none}
a.gf:link { font-size: 12px; color: #FF6699; text-decoration: none}
a.gf:hover { color: #FF9900; text-decoration: none}
a.gf:active { color: #00FF00; text-decoration: none}

.w2 { font-size: 12px; text-decoration: none; color: #990000}
a.w2:link { color: #990000; text-decoration: none}
a.w2:hover { color: #FFCC66; text-decoration: none}
a.w2:active { color: #339900; text-decoration: none}

</STYLE>
<A HREF="SDF" CLASS=GF>11111111111111</A><BR>
<A HREF="SDF" CLASS=W2>222122222</A>
genuis 2003-01-14
  • 打赏
  • 举报
回复
.gf { font-size: 12px; color: #FF6699; text-decoration: none}
a.gf:link { font-size: 12px; color: #FF6699; text-decoration: none}
a.gf:hover { color: #FF9900; text-decoration: none}
a.gf:active { color: #9966CC; text-decoration: none}

.w2 { font-size: 12px; text-decoration: none; color: #990000}
a.w2:link { color: #990000; text-decoration: none}
a.w2:hover { color: #FFCC66; text-decoration: none}
a.w2:active { color: #339900; text-decoration: none}

一个链接的 <a class=gf....

其它链接的 <a class=w2 .....

61,128

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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