<style>
A.test:link {
FONT-SIZE: 11px; COLOR: #666666; BACKGROUND-COLOR: #ff0000; TEXT-DECORATION: none
}
</style>
以上是CSS代码
<a href="?" class="test">aaa</a>

解决方案 »

  1.   

    <a href="#" onclick="this.style.border='1px solid red'">test</a>
      

  2.   

    OK?
    <a href="#" style="text-decoration:none" onclick="this.style.border='1px solid red'">testtesttesttest</a><br><br>
    <a href="#" style="text-decoration:none" onclick="this.style.borderTop='1px solid red'">testtesttesttest</a><br><br>
    <a href="#" style="text-decoration:none" onclick="this.style.borderRight='1px solid red'">testtesttesttest</a><br><br>
    <a href="#" style="text-decoration:none" onclick="this.style.border='3px double red'">testtesttesttest</a><br><br>
    <a href="#" style="text-decoration:none" onclick="this.style.borderTop='3px double red'">testtesttesttest</a><br><br>
      

  3.   

    to net_lover(孟子E章) :
      <a href="#" onclick="this.style.border='1px solid red'">test</a>
    已经很漂亮了,为啥还要复杂的呀。 
      

  4.   

    <a href="#" style="text-decoration:none" onclick="this.style.border='10px solid red'">testtesttesttest</a>