<a target="_blank" style="color:#0000AA ;cursor: pointer">我变色</a>
默认是蓝色,移动上去变成红色,移开变默认色蓝色,只要这个一个锚变,其他锚不要变

解决方案 »

  1.   

    <a target="_blank" style="color:#0000AA ;cursor: pointer" onmousemove="this.style.color='red';" onmouseout="this.style.color='blue';">我变色</a>
      

  2.   


    <style type="text/css">
    #link a{color:Blue;}
    #linl a:hover{color:Red;}
    </style><a target="_blank" style="color:#0000AA ;cursor: pointer" id="link">我变色</a>
    id是唯一的,这个效果只对这个<a>有效
      

  3.   

    a:link {
     color: #666666;
     text-decoration: none;
    }
    a:visited {
     text-decoration: none;
     color: #000000;
    }
    a:hover {
     text-decoration: underline;
     color: #FF0000;
    }
    a:active {
     text-decoration: none;
    }