css 鼠标经过文字变色
(编辑:jimmy 日期: 2024/11/17 浏览:3 次 )
#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应该放在最后
{
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应该放在最后
下一篇:Div+Css实现屏蔽效果