如何删除锚点(链接)的下划线? [英] How to remove the underline for anchors(links)?

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

问题描述

还是有(在CSS中)避免在页面中引入的文本和链接的下划线。?

Is there anyway (in CSS) to avoid the underline for the text and links introduced in the page .. ?

推荐答案

使用CSS。这会从 a u 元素中删除下划线:

Use CSS. this removes underlines from a and u elements:

a, u {
    text-decoration: none;
}

有时您需要覆盖其他样式的元素,您的规则上的!important 修饰符:

Sometimes you need to override other styles for elements, in which case you can use the !important modifier on your rule:

a {
    text-decoration: none !important;
}

这篇关于如何删除锚点(链接)的下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆