加入这个样式表就行了
<style>
A {
   color:white;
  }
A:active {
  color:red;
  }
</style>

解决方案 »

  1.   

    还是不对啊,这种效果是:鼠标点击按下时颜色变成了red,可是鼠标松开时又变成了white,我要的效果是当点击另外一个链接时前一个链接的颜色才还原成white
      

  2.   

    <style>
    A{t:expression(this.onclick=function(){var links=document.getElementsByTagName('A');for(var i=0;i<links.length;i++)links[i].style.color='white';this.style.color='red';});color:white}
    </style>
    <body bgColor='lightblue'>
    <a href='#'>1</a><br>
    <a href='#'>2</a><br>
    </body>
      

  3.   

    排版有点问题,看下面的:<style>
    A{t:expression(this.onclick=function(){var links=document.getElementsByTagName('A');for(var i=0;i<links.length;i++)links[i].style.color='white';this.style.color='red';});
    color:white}
    </style>
    <body bgColor='lightblue'>
    <a href='#'>1</a><br>
    <a href='#'>2</a><br>
    </body>
      

  4.   

    <style>
    A {
       color:white;
      }
    A:active {
      color:red;
      }
    A:visited {
      color:red;
    }
    哪有那么烦啊,晕
    </style>