如何在没有下划线的情况下显示超链接?

时间:2009-08-12 18:17:55

标签: html css

如何显示没有下划线的超链接?

3 个答案:

答案 0 :(得分:15)

a:link {
    text-decoration: none;
    color: #0000CC;
}
a:visited {
    text-decoration: none;
    color: #0000CC;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: underline;
}

(或者至少we是这样做的。)

哦,顺便说一下上面的订单很重要。

答案 1 :(得分:4)

a:link, a:visited {
   text-decoration:none;
}

答案 2 :(得分:4)

应用此样式:

text-decoration: none;