<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><style type="text/css">.link a:link{ color:blue;}.link a:visited{ color:yellow;}.link a:hover{ color:red;}.link a:active{ color:#ccc;}</style></head><body><div id="webmanage"> <ul> <li class="link"><a href="__ROOT__category" target="dashbord">栏目一</a></li> <li class="link"><a href="__ROOT__article/lists" target="dashbord">栏目二</a></li> <li class="link"><a href="__ROOT__article/add" target="dashbord">栏目三</a></li> <li class="link"><a href="__ROOT__member/reg" target="dashbord">栏目四</a></li> </ul></div> </body></html>
.link a:link{ color:blue;}a:visited{ color:yellow;}a:hover{ color:red;}a:active{ color:#ccc;}
第一个也要去掉,打错了。
你把这个a属性用不同的类分开,然后设置他的属性。比如: