[CSS基础]在一个网页中使用多种不同链接风格的CSS.

来源:互联网 发布:网络与信息期刊 编辑:程序博客网 时间:2024/05/14 00:57

(http://community.csdn.net/Expert/topic/3256/3256680.xml?temp=.1132166)

定义自己的伪类:

.toplink a {
 color: #FFFFFF;
 text-decoration: underline;}
.topLink a:hover {
 color: #FFFFFF;
 text-decoration: underline;}
.topLink a:visited {
 color: #FFFFFF;
 text-decoration: underline;}
.topLink a:active {
 color: #FFFFFF;
 text-decoration: underline;font-weight: bold;
}


用<td class="topLink">引用

原创粉丝点击