從品牌網站建設到網絡營銷策劃,從策略到執行的一站式服務
來源:東莞seo優化 | 2012-3-20 瀏覽:8579
怎樣用css設置超鏈接字體的不同顏色
2006-6-7 10:39 yywzy
a:link {
text-decoration: none;
color: #31687E;
}
a:visited {
color: #31687E;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: none;
}
a:active {
color: #FF0000;
text-decoration: none;
}
a.v1:link {
text-decoration: underline;
color: #31687E;
}
a.v1:visited {
color: #31687E;
text-decoration: underline;
}
a.v1:hover {
color: #333333;
text-decoration: underline;
}
a.v1:active {
color: #FF0000;
text-decoration: none;
}
上面四個為默認的超級鏈接的樣式,下面四個為不同顏色的鏈接樣式,不過在鏈接的時候要調用一下v1的名字如這種格式<a href="index.asp" class="v1">首頁</a>