本文介绍了如何使用CSS删除Chrome中的链接下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(它在FF中工作)
如何使用CSS删除访问链接的下划线?我曾尝试过:

(it works in FF)How can I, using CSS, remove the underline of a visited link? I have tried:

a:visited {
    color: rgb(255, 255, 255);
    text-decoration: none !important;
}

a:visited {
    color: rgb(255, 255, 255);
    text-decoration: none;
}


推荐答案

适用于:大多数基于webkit的浏览器(如Chrome浏览器)中访问过的链接是 color 。这是为了防止。此外,您无法确定JavaScript链接的 color CSS属性的值。请参阅。

You can, however, change the style of all links with a{text-decoration: none;}. Here's a demo of the whole affair.

这篇关于如何使用CSS删除Chrome中的链接下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:55
查看更多