我的CSS是:
.jokesmenu li a:hover {
background-color: #35afe3;
background-image:-webkit-gradient(
linear,
left top,
left bottom,
from(rgb(69, 199, 235)),
to(rgb(38, 152, 219))
);
background-image:-webkit-linear-gradient(
top,
rgb(69, 199, 235),
rgb(38, 152, 219)
);
background-image:-moz-linear-gradient(
top,
rgb(69, 199, 235),
rgb(38, 152, 219)
);
background-image:-o-linear-gradient(
top,
rgb(69, 199, 235),
rgb(38, 152, 219)
);
background-image:-ms-linear-gradient(
top,
rgb(69, 199, 235),
rgb(38, 152, 219)
);
background-image:linear-gradient(
top,
rgb(69, 199, 235),
rgb(38, 152, 219)
);
filter: progid:DXImageTransform.Microsoft.gradient(
GradientType=0,
StartColorStr='#45c7eb',
EndColorStr='#2698db'
);
color:#fff;
list-style:none;
text-decoration:none;
}
html是:
<ul class="jokesmenu">
<li class="jokesmenu"><a href="http://www.domain.com/jokes_sms/">SMS<span><?php echo $jokes_sms; ?></span></a> </li>
</ul>
如何使用上面的 css 悬停菜单?我用笑话菜单作为李。