超連接的問題
我在CSS裡寫的代碼:
a{
display: block;float: left; width: 120px;text-decoration:none;color: #000000;
background: url(images/a.gif) no-repeat;
}
a:hover {
text-decoration: none; color: #E58C24;
}
a:active{
color: #E58C24;background: url(images/b.gif) no-repeat;
}
ul {
text-align: center;
margin: 0;
list-style: none;
}
然後我在下面這樣用:
<div>
<ul>
<li> <a href="aat.aspx" Target="main">1 </a></li>
<li> <a href="ggt.aspx" target ="main">2 </a></li>
</ul>
</div>
我點1時。。他會改變背影圖片b,2的背影圖片為a.我點2時他會改變背影圖片b,1背影變為a.可是我鼠標點別的地方,所有的背影為什麼都會變成a呢?如果我想我點別的地方那一個背影圖片不變。這要怎麼改呢?
我是新手。。。希望各位多多指點。