日期:2014-05-17  浏览次数:20611 次

用css设置超链接文字,在本地显示正常,传到远程服务器没效果,怎么回事?
用css设置超链接文字,在本地显示正常,传到远程服务器没效果,怎么回事?

<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-size: 12px;
}
.STYLE5 {font-size: xx-large}
.STYLE6 {font-size: 12px}
.STYLE7 {
font-size: 14px;
color: #FF6600;
}
.STYLE9 {color: #999999}
.STYLE10 {color: #FF0000}

   a:link { text-decoration: none; color: blue} 
   a:active { text-decoration:blink} 
   
   a:visited { text-decoration: none}
 a:hover { text-decoration:underline;color: red}  



   a.yangshi:link { text-decoration: none; color: green} 
   a.yangshi:active { text-decoration:blink} 
 
   a.yangshi:visited { text-decoration: none; color: green} 
 
 a.yangshi:hover { text-decoration:underline;color:green}  
   a.top:link { text-decoration: none; color:#FFFFFF} 
   a.top:active { text-decoration:blink} 
   a.top:visited { text-decoration: none; color:#FFFFFF}  
 a.top:hover { text-decoration:underline;color:#FFFFFF}  
 
  a:active {outline:none;blr:expression(this.onFocus=this.blur());}
img,a .img{border:0}
  a.img-link:active{outline:none}
  a.img-link{position:relative;z-index;0;}
  a.img-link:hover span{visibility:visible; top:0;left:0;cursor:pointer;}
  a.img-link span{position:absolute;left:-999em; visibility:hidden;}
a.img-link:link { outline:none;blr:expression(this.onFocus=this.blur());} 
a.img-link:active {outline:none;blr:expression(this.onFocus=this.blur());}
 
a.ad:{ font-size:6px } 
a.ad:hover { text-decoration:underline;color:#FF0000 }  
   a.ad:link { text-decoration: none; color:#999999} 
   a.ad:active { text-decoration:blink} 
   a.ad:visited { text-decoration: none; color:#999999} 

.STYLE13 {color: #000000}
.STYLE14 {color: #FF0000; font-size: 12px; }
.STYLE15 {color: #FFFF00}

-->
</style>

------解决方案--------------------
缓存、文件编码、浏览器兼容模式等
------解决方案--------------------
你哪些样式没效果?
class="STYLE10"
地方文字颜色不是红色的?
------解决方案--------------------
那可能是你使用的问题了
注意,link visited hover active 顺序不能变

a.yangshi:link {color: #00F;text-decoration:none;} /* unvisited link */
a.yangshi:visited {color: #00F;text-decoration:none;} /* visited link */
a.yangshi:hover {color: #F00} /* mouse over link */
a.yangshi:active {color: #00F} /* selected link */