当你悬停在相应的
<li>
标签上时,我希望一个特定的具有下滑和上滑效果。您可以在此链接上实时检查:http://mashup2.sunnydsouza.com/index3.php
我使用以下jQuery来解决它:
$(".altbgcolor").mouseenter(function() {
$(this).css("background- color","#D3EAC7").find(".newsthumb").corner();
$(".newstext h1",this).css("color","#000");
$(".newstext div",this).css("color","#000");
$(".sharedp").slideDown(slow);
}).mouseleave(function () {
$(this).css("background-color","#f5f5f5").find(".newsthumb").corner();
$(".altbgcolor:even").css("background-color","#f0f0f0");
$(".newstext h1",this).css("color","#666666");
$(".newstext div",this).css("color","#666666");
$(".sharedp").slideUp(slow);
});
我做错了什么吗?有人可以检查一下网站的HTML代码,看看我哪里出了问题。我现在很为难 :(