.hi伙计们,我对我的菜单栏造型有点问题。我有以下代码:使用CSS的样式链接
#can_header {
width:1024px;
height:140px;
background-color:#8D96A8;
}
#can_header ul{
list-style-type:none;
margin: 0;
padding: 110px 0 0 550px;
font-family: adolph;
text-transform: uppercase;
font-size: 1em;
}
#can_header li{
display:inline-block;
line-height: 15px;
border-right: 2px solid #CCC;
}
#can_header li#item-104{
border-right: none;
}
#can_header ul a:visited{
color:#CCC;
text-decoration:none;
margin-right:15px;
margin-left:15px;
}
#can_header ul a:link{
color:#CCC;
text-decoration:none;
margin-right:15px;
margin-left:15px;
}
#can_header ul a:hover{
color:#EB1886;
}
#can_header ul a:active{
color:#FFFFFF;
}
我想要做的是,当我点击我的UL的链接之一的选择链接的颜色将永久而链接的页面上改变。使用我现在的代码,链接的颜色只会在点击时发生变化..但是当页面更改时,颜色将恢复正常。 TIA!更强大!
。通过我使用Joomla的方式,我只是编辑,我把模板的CSS。
有人给downvote这个答案吗?我真的很好奇,为什么? – gandil 2011-06-08 23:07:12