请教,我的css如下,为什么弄好的asp网页,链接还是有下划线啊?

rybiter 2003-07-29 10:35:18
body {
font-size: 12px;
font-family: verdana,tahoma,宋体;
font-color: #000000;
scrollbar-face-color: #EEEEEE; scrollbar-shadow-color: #EEEEEE;
scrollbar-mediumlight-color: #E0E0E0; scrollbar-3dlight-color: #CCCCCC;
scrollbar-darkshadow-color: #CFCFCF; scrollbar-track-color: #F0F0F0;
scrollbar-arrow-color: #999999}
/*
cursor: url('/images/body.cur');
*/
background-attachment:fixed;
}

a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;

/*
cursor: url('/images/hover.cur');
*/
}

p,input,select {
font-family: 宋体;
font-size:12px;
color:#000000;

}

table {
font-family: 宋体;
font-size:12px;
color:#000000;
word-break:break-all;
}

td {
font-size: 12px;
color:#000000;
font-family:宋体;
word-break:break-all;
}

textarea {
font-family: 宋体;
font-size: 12px;
color:#0083ff;
}

.menu {
filter:shadow(color=#cccccc,direction=145,strength=2);
}

.menu2 {
filter:glow(Color=blue, strength=2);
}

.menu3 {
font-family: 宋体;
font-size: 14px;
color:#0033ff;
font:bold;
}

.menu4 {
FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);
}
.bginput {
background-color: #ffffff;
color: #000000;
font-family: verdana,tahoma,ms shell dlg,sans-serif,宋体;
font-size: 12px;
border-right: 3px;
border-top: 3px;
border-left: 3px;
border-bottom: 3px;
background: url(bg_input.gif) #ffffff;
border: #000000 solid 1px
}

li {
font-size: 9pt;
line-height: 180%;
}

form {
margin: 0px
}

.input {
background-color: #cecbde;
border-bottom: #665b8e 1px solid;
border-left: #ffffff 1px solid;
border-right: #665b8e 1px solid;
border-top: #ffffff 1px solid;
color: #000000;
font-size: 9pt;
height: 20px;
}

.edit {
border-bottom: #4a3163 1px solid;
border-left: #4a3163 1px solid;
border-right: #4a3163 1px solid;
border-top: #4a3163 1px solid;
font-size: 9pt;
}

.lh { line-height: 250%}

.xu {
border: #0000ff 1px dashed;
word-break:break-all;
}

.blue0 {
background:#99CCFF;
}

.blue1 {
background:#deefff;
}

.blue2 {
background:#f5f5f5;
}

.blue3 {
background:#ffffff;
}
...全文
46 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
purexu 2003-09-22
  • 打赏
  • 举报
回复

a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;
}

改为
a {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;
}

只要链接的样式跟鼠标经过的样式就可以了,其它状态的都不用
purexu 2003-09-22
  • 打赏
  • 举报
回复

a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;
}

改为
a {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;
}

只要链接的样式跟鼠标经过的样式就可以了,其它状态的都不用
zhjun410 2003-09-21
  • 打赏
  • 举报
回复
你自己的那段代码的插入的地方对不?要说那样应该是没有问题的了。
<style>
<!--a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;}
a:active {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;}
-->
</style>
把这段插入到你的<head></head>部分这样就应该可以了

对于这种写法 肯定是错误的了 因为那种不是自己定义的类,不用设置它的class属性:
<a href="链接地址" class="a">点击这里</a>

(我是这么理解的了,应该是这样的吧)
liangexe 2003-09-21
  • 打赏
  • 举报
回复
你的css样式中要写完4种鼠标状态参数,你现在只写了3种.
a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;}
a:active {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;}
double22822 2003-09-21
  • 打赏
  • 举报
回复
其他的如果起作用了,试一下倒换css样式的顺序。
jfang 2003-09-21
  • 打赏
  • 举报
回复
进入“Edit style sheet”窗口,单击“New”确立新样式, 这里的Type(类型)中,需要选择的是“Redefine HTML Tag”,同时在具体的标记Tag中选中代表超级链接的“a”,单击OK。
 勾取“Decoration”(修饰)中的“None”复选框,这时所有网页中的链接文字下划线都被清除掉了。

aryou 2003-09-20
  • 打赏
  • 举报
回复
你在做链接的时候

<a href="链接地址" class="a">点击这里</a>

这样肯定可以把下划线去掉的,,
lwzlemon 2003-09-20
  • 打赏
  • 举报
回复
同样楼上说的。
tsstudio 2003-08-17
  • 打赏
  • 举报
回复
text-decoration: 这个属性就是表示下划线的,而你的值是none,当然没有下划线。将none改为underline就行了。另外a:hover是表示鼠标在链接上的状态,a是普通状态,a:visit是已经访问过的链接的状态。
liuruhong 2003-07-29
  • 打赏
  • 举报
回复
a{
color: #000000;
text-decoration: none
}
加上应该就好了
rybiter 2003-07-29
  • 打赏
  • 举报
回复
写了啊:
a:link {
color: #000000;
text-decoration: none
}

a:visited {
color: #000000;
text-decoration: none
}

a:hover {
color: #FF0000;
position:relative;
top:1px;
text-decoration: none;
其他我不懂的。这个css是抄来的。请问怎么回事啊?
liuruhong 2003-07-29
  • 打赏
  • 举报
回复
你也将A这个元素的css写一下
你只是设置了几个伪类的样式

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧