css 鼠标经过文字变色

建站知识 2021-07-03 08:42www.168986.cn长沙网站建设
#dh
{
width:1003px;
height:36px;
background-image:url(images/mmain_03.gif)
}
#dh li
{
height:30px;
width:110px;
float:left;
list-style:none;
text-align:center;
margin:7px;
padding:5px;
}
#dh li a:link
{
font-size:16px;
font-weight:bold;
color:#FFFFFF;
text-decoration:none;
}
#dh li a:visited
{
font-size:16px;
font-weight:bold;
font-family:"Arial Black";
color:#FFFFFF;
text-decoration:none;
}
#dh li a:hover
{
font-size:16px;
font-weight:bold;
color:#FF0000;
text-decoration:underline;
}

这里应该主要css顺序:a:hover应该放在

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by