Remove all underlines from links on a page?

I have been noodling with a very simple CSS:

a {
    text-decoration: none;
}

If I include this in the head of a page, it remove most of the underlines from links on a page. But there are always some that persist. For example, in gmail, there are underlines under 'About These Links', which is a span, 'Disable Buzz', also a span.

I have tried text-decoration: none on span and everything else I can think of but these underlines persist.

How can I get rid of these things? Are there other elements that may have underlines? How may I get rid of all of them?


如果没有看到您遇到的问题,我可以给出的建议是:使用Firebug或类似的Web开发工具来检查有问题的元素,以发现哪些CSS规则会影响它们,通过分析这些规则,您可以创建“counter CSS ”。


It may be because links are broken up into several pseudo states that might be overwriting the style. Try this:

a, a:link, a:visited, a:hover, a:active, a:visited:hover {
    /* :visited:hover is an old IE bug, not sure if it's still relevant */
    text-decoration:none;
}
链接地址: http://www.djcxy.com/p/74610.html

上一篇: 装饰:无; 没有做任何事情

下一篇: 从页面上的链接中删除所有下划线?