网页制作CS3做出的网页,加上超链接后,字下面都有一条横线,如何去掉
发布网友
发布时间:2022-04-22 18:31
我来回答
共2个回答
热心网友
时间:2023-11-15 12:49
实现方法很简单,在源代码的<head>和<head>之间加上如下的CSS语法控制: <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参数表示超链接的文字有下划线
热心网友
时间:2023-11-15 12:50
可以在<a href="#" style="text-decoration:none;"></a>也可以再样式中写<style type="text/css"> <!-- a:link { text-decoration: none;} a:active { text-decoration:blink} a:hover { text-decoration:underline;color: red} a:visited { text-decoration: none;color: green} --> </style>