当前位置:网站首页>A标签去掉下划线

A标签去掉下划线

2022-06-26 13:32:00 全栈程序员站长

大家好,又见面了,我是你们的朋友全栈君。

A标签去掉下划线

<style type=”text/css”> <!– a:link { text-decoration: none;color: blue} a:active { text-decoration:blink} a:hover { text-decoration:underline;color: red} a:visited { text-decoration: none;color: green} --> </style>

其中: a:link 指正常的未被访问过的链接; a:active 指正在点的链接; a:hover 指鼠标在链接上; a:visited 指已经访问过的链接; text-decoration是文字修饰效果的意思; none参数表示超链接文字不显示下划线;

underline参数表示超链接的文字有下划线

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/133823.html原文链接:https://javaforall.cn

原网站

版权声明
本文为[全栈程序员站长]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/2030575