html中链接字体的下划线如何去掉

如题所述

a{
    text-decoration: none;
}

像上面这样,会整个页面的所有链接的下划线都会被去掉。如果只是单独用于某一处的话:

<a href="" style="text-decoration: none;">link</a>

温馨提示:答案为网友推荐,仅供参考
相似回答