如何用HTML+CSS实现图片的转换

来源:百度知道 编辑:UC知道 时间:2024/05/17 04:47:39
可不可以不用js就用HTML+CSS就可以实现图片的转换?
就是选菜单下面的图片就会自动换
如果要用JS
js怎么写啊因为我不会JS

a.sty01:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 30px;
color: #FFFFFF;
background-image: url(../img/img_09.gif);
background-repeat: repeat-x;
text-align: center;
height: 36px;
display: block;
text-decoration: none;
}
a.sty01:visited {
color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 30px;
text-decoration: none;
background-image: url(../img/img_09.gif);
background-repeat: repeat-x;
text-align: center;
height: 36px;
display: block;
}
a.sty01:hover {
background-image: url(../img/img_10.gif);
background-repeat: no-repeat;
color: #990000;
}