怎么去除网页中超连接的下划线

老师让我去掉做网页时超连接的下划线

实现方法很简单,在源代码的<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参数表示超链接的文字有下划线

同样,如果讲none替换成overline则给超链接文字加上划线,换成line-through给超链接文字加上删除线,blink则使文字在闪烁。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2007-12-19
<html>
<head>
<style>a{TEXT-DECORATION:none}</style>
</head>
<body>
<a href="www.baidu.com">我不要下划线</u></a>
</body>

</html>
第2个回答  2007-12-19
属性面板→页面属性→链接→不显示下画线
相似回答