我有以下 jquery 来制作所有对象,但悬停的对象会淡出然后淡出。但是,我希望悬停的元素立即淡化为完全不透明,而不是等待其他元素淡出。
$('a').bind('mouseenter',function(){
$(this).fadeTo(0,1);
$('a').not($(this)).fadeTo('fast', 0.25);
}).bind('mouseleave',function(){
$('a').fadeTo('slow', 1.0);
});