谁能给我解释下CSS导航菜单里边的链接怎么不带下划线!说详细点!

发布网友 发布时间:2022-04-23 20:29

我来回答

5个回答

热心网友 时间:2023-10-09 02:11

a
语法:
text-decoration : none || underline || blink || overline || line-through
取值:
none : 默认值。无装饰
blink : 闪烁
underline : 下划线
line-through : 贯穿线
overline : 上划线
默认连接是由下划线的你设置为 none 就是了

热心网友 时间:2023-10-09 02:12

text-decoration: none 表示无下划线,把这个加进去就可以了。
如果a:link 、a:visited 、a:hover三种链接状态的样式相同,即为:
<style type="text/css">
<!--
a { text-decoration: none}
-->
</style>

热心网友 时间:2023-10-09 02:12

在链接a {color:#fff; float:left;width:86px;height:25px;top:0;left:0;}里加上这句就OK了
text-decoration:none;
下个CSS2的样式表!!不求最新的!!你多看看!!!就晓得了!!
1楼的给的答案就是样式表里的(完全COPY,不过蛮细心的)
不带下划张就直接插到a里就可以了:a{}

热心网友 时间:2023-10-09 02:13

只要在你网页里加上
在<HEAD>…</HEAD>之间输入如下代码:

<style type="text/css"> <!--

a { text-decoration: none}

--> < /style>
就 ok了

热心网友 时间:2023-10-09 02:13

text-decoration:none在需要设置为无下划线的标签里边加上style="text-decoration:none"就可以了

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com