Enlarging images when mouseover using Jquery?

后端 未结 4 1756
耶瑟儿~
耶瑟儿~ 2021-01-06 04:46

I am trying to enlarge the images when mouseover and reduce the size back to normal after mouseout. I have the following:

$(\'#image img\').live(\"mouseover\         


        
4条回答
  •  庸人自扰
    2021-01-06 05:40

    You can use this: jsFiddle

    $('#image').hover(function(){
        $(this).css({width:"100%",height:"100%"});
    },function(){
        $(this).css({width:"50%",height:"50%"});   
    });
    

提交回复
热议问题