好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

用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}

-->


回复讨论(解决方案)

缓存、文件编码、浏览器兼容模式等

缓存、文件编码、浏览器兼容模式等

不是缓存问题,浏览器兼容应该也不是,编码怎么弄?

你哪些样式没效果?
class="STYLE10"
地方文字颜色不是红色的?

你哪些样式没效果?
class="STYLE10"
地方文字颜色不是红色的?

  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}

这些没效果

本帖最后由 net_lover 于 2012-09-28 12:20:27 编辑

那可能是你使用的问题了
注意,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 */

查看更多关于用css设置超链接文字,在本地显示正常,传到远程服务器没效果,怎么回事?_html/css_WEB-的详细内容...

  阅读:32次