[url=http://zhidao.baidu.com/question/css.css]<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
TEXT-DECORATION:underline;LEFT:1px;TOP:1px;POSITION:relative;
}
a:visited {
color: #cccccc;
text-decoration: none;
}
</style>
明明写了“TEXT-DECORATION:underline”却没有下划线 不知道为何
下面的是css.css中的源代码
/* CSS Document */
body{
background-color: #808080;
font-size:12px;
margin-top: 0px;/*(上边距)*/
margin-left: 0px;/*(左边距)*/
}
.bj {
background-image: url(images/zuopzhshi_bj.gif);
background-repeat: no-repeat;
background-position: right 292px;
}
.kechshzhi_bj {
background-image: url(images/kechshzhi_bj.gif);
background-repeat: no-repeat;
background-position: right 293px;
}
.bmcx-bj {
background-attachment: fixed;
background-image: url(images/baomcxu_bj.gif);
background-repeat: no-repeat;
background-position: right 295px;
}
.changjwti-body {
background-color:D8CEB6;
}
.text {
font-size: 9pt;
color: #000000;
line-height: 170%;
padding-left:22px;
padding-right: 22px;
}
td{
font-size:12px;
}
.kechbiao-title{
font-size:12pt;
text-align:center;
}
.kechbiao-week{
font-size:10pt;
text-align:center;
}
.kechbiao-nr{
font-size:9pt;
line-height: 200%;
text-align:center;
}
.kechshzhi-nr{
font-size:9pt;
line-height: 170%;
font-color:000000;
}
.kechbiao-nrA {
font-size:9pt;
line-height: 160%;
text-align:center;
}
.BorderTB {
border-top-width: 1pt;
border-top-style: solid;
border-top-color: #9A6D39;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #9A6D39;
}
.BorderB {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #9A6D39;
}
.changjwti-bj {
background-image: url(images/changjwti_bj.gif);
background-repeat: no-repeat;
background-position: right 295px;
}
.zhaoshjzhang-nr {
font-size: 10pt;
color: #000000;
line-height: 170%;
}
.style1{
font-size:16px;
font-weight: bold;
color: #FFFFFF;
}
jixuankecheng123 {
font-size: 9pt;
line-height: 200%;
font-weight: normal;
text-align: left;
}
.kechbiao-nr br11 {
font-size: 9pt;
line-height: 200%;
}
.kechbiao-nr br123 {
font-size: 9pt;
line-height: 200%;
text-align: left;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
a:hover {
color: #994499;
TEXT-DECORATION:underline;LEFT:1px;TOP:1px;POSITION:relative;
}
參考答案:[/url]重复定义,网页中生效的是css.css中的代码,你把其中的重复代码删除就行了