<style>
A.test:link {
FONT-SIZE: 11px; COLOR: #666666; BACKGROUND-COLOR: #ff0000; TEXT-DECORATION: none
}
</style>
以上是CSS代码
<a href="?" class="test">aaa</a>
A.test:link {
FONT-SIZE: 11px; COLOR: #666666; BACKGROUND-COLOR: #ff0000; TEXT-DECORATION: none
}
</style>
以上是CSS代码
<a href="?" class="test">aaa</a>
<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>
<a href="#" onclick="this.style.border='1px solid red'">test</a>
已经很漂亮了,为啥还要复杂的呀。