用jq编写hover事件,用jqhover事件改变css样式

$(function() {
    $('.lifirst').hover(function(){
        $(this).find('.selt').slideDown(200)
    },function(){
        $(this).find('.selt').slideUp(200)
    });
 
 
 
用jqhover事件改变css样式
$('.morea1').hover(function(){
    $(this).find('.morespan').css('color','#ff6700');
    $(this).find('img').css('background','#ff6700');
},function(){
    $(this).find('.morespan').css('color','#333');
    $(this).find('img').css('background','#b0b0b0');
});

猜你喜欢

转载自www.cnblogs.com/1171899qq/p/12897698.html