<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
a:link {
color: #00F;
text-decoration:none;
}
a:visited {
color: #F00;
text-decoration:underline;
}
a:hover {
color: #F93;
text-decoration:underline;
}
a:active {
color: #3C0;
text-decoration:none;
}
-->
</style></head>
<body>
<table width="431" border="1" cellspacing="0">
<tr>
<td height="31" colspan="2">手机</td>
<td colspan="2">电脑</td>
</tr>
<tr>
<td width="74" height="26"><a href="1.html">诺基亚</a></td>
<td width="95"><a href="1.html">摩托罗拉</a></td>
<td width="117"><a href="1.html">联想</a></td>
<td width="127"><a href="1.html">戴尔</a></td>
</tr>
</table>
</body>
</html>
悬停时有下滑线,可是访问过后的下滑线就没显示了
HTML 链接下划线的问题
答案:3 悬赏:0 手机版
解决时间 2021-03-06 13:43
- 提问者网友:雪舞兮
- 2021-03-06 08:22
最佳答案
- 五星知识达人网友:千夜
- 2021-03-06 09:56
因为你写的CSS就是这样的效果呀没下划线的!要想浏览后有下划线改一下这里就好了!
a:link {
color: #00F;
text-decoration:none;
}
改成这样!显示下划线!
a:link {
color: #00F;
text-decoration:underline;
}
希望能帮到你!如果这样还不行的话那只能说你有的地方重写了!
a:link {
color: #00F;
text-decoration:none;
}
改成这样!显示下划线!
a:link {
color: #00F;
text-decoration:underline;
}
希望能帮到你!如果这样还不行的话那只能说你有的地方重写了!
全部回答
- 1楼网友:十年萤火照君眠
- 2021-03-06 12:59
<input type="text" name="txtname" class="ab" width="350">
<style type="text/css">
.ab{
border:0 solid 1px; border-top:none; border-left:none; border-right:none;}
</style>
加上宽度的代码width=""
- 2楼网友:想偏头吻你
- 2021-03-06 11:32
在做之前先看一下这个吧
a:link 指正常的未被访问过的链接。
a:active 指正在点的链接。
a:hover 指鼠标在链接上。
a:visited 指已经访问过的链接。
text-decoration 是文字修饰效果的意思。
none 参数表示超链接文字不显示下划线。
underline 参数表示超链接的文字有下划线。
改成
<style type="text/css">
<!--
a:link {
color: #00F;
text-decoration:none;
}
a:visited {
color: #F00;
text-decoration:underline;
}
a:hover {
color: #F93;
text-decoration:underline;
}
a:active {
color: #3C0;
text-decoration:underline;
}
-->
</style>
不过有一点要注意的是,当你在这个页上点了链接后,如果页面跳转了,那在新打开的页面上你刚点过的那个链接同样也不会有下线的,
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯