您当前所在的位置:首页>>设计教程>>网页设计>>正文 文章正文
如何在同一页面设置不同文字链接效果的样式.
作者: 佚名 点击数:

代码如下:
〈HTML〉〈HEAD〉〈TITLE〉如何在同一页面设置不同文字链接效果的样式〈/TITLE〉
〈meta http-equiv="Content-Type" content="text/html; charset=gb2312"〉
〈style type="text/css"〉
〈!--
a:hover { font-size: 9pt; color: #FF0000; text-decoration: underline}
a:link { font-size: 9pt; color: #006699; text-decoration: underline}
a:visited { font-size: 9pt; color: #006699; text-decoration: underline}
a:active { font-size: 9pt; color: #FF0000; text-decoration: none}
a.r1:hover { font-size: 9pt; color: #FF0000; text-decoration: underline overline}
a.r1:link { font-size: 9pt; color: #000000; text-decoration: underline overline}
a.r1:visited { font-size: 9pt; color: #99CC00; text-decoration: underline overline}
a.r1:active { font-size: 9pt; color: #000000; text-decoration: underline overline}
--〉
〈/style〉
〈/head〉
〈body bgcolor="#FFFFFF" text="#000000"〉
〈a href="#"〉下划线链接 〈/a〉
〈p〉〈/p〉
〈a href="#" class="r1"〉双下划线链接〈/a〉
〈/BODY〉
〈/HTML〉
补充说明:
a:hover 表示鼠标划过时的样式.
a:link 表示链接的样式.
a:active 表示当前活动连接的样式.
a:visited 表示已经访问过的连接的样式.

相 关 搜 索
今 日 头 条
 
最 新 热 门
最 新 推 荐
 
文章来源: 网络  更新时间:2005-3-22 21:26:20  责任编辑:stsee
  上一篇文章:双击鼠标左键来滚动背景,单击停止。
下一篇文章:用CSS给文字加入阴影效果和文字描边效果。
相关文章
如何给片抖动怎做的
在DW如何给水平线加颜色
如何在网页中实现flash的全屏播放
如何改变鼠标的形状
网页弹出窗口的制作
用marquee做的滚动字幕
怎样在IE中调用Dreamweaver进行编
如何让一张片有浅到深的渐变
双击鼠标左键来滚动背景,单击停
用CSS给文字加入阴影效果和文字描