/鼠标移上/ $('div.ljyx dl dd').hover(function(){ $(this).find('p').stop(true,true).animate({bottom:'0px'}); $(this).find('em').css({'display':'block'}).addClass('fadeIn animated'); $(this).find('img').addClass('myzoomIn animated'); $(this).find('img').removeClass('myzoomOut'); },function(){/鼠标移开/ $(this).find('p').stop(true,true).animate({bottom:'-60px'}); $(this).find('em').css({'display':'none'}).removeClass('fadeIn animated'); $(this).find('img').removeClass('myzoomIn'); $(this).find('img').addClass('myzoomOut'); });
$('p').css('text-indent','2em').find('img').parents('p').css('text-indent',0);