也许可以这样写。你不妨先插入代码试试
a:link#nav,a:visited#nav{
background-color:#C60;
}
a:hover#nav{
background-color:#C60;
}
.ex a:link,.ex a:visited{
background-color:#333;
width:20px;
color:#FFF;
}
.ex a:hover{
background-color:#C60;
width:20px;
color:#FFF;
}
li{
list-style:none;
float:left;
margin-right:5px;}
然后body部分
虽然不好,但是你要的效果能实现