Enlarging images when mouseover using Jquery?

后端 未结 4 1751
耶瑟儿~
耶瑟儿~ 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条回答
  •  旧时难觅i
    2021-01-06 05:48

    I'd first try CSS for this:

    #image img {
      width: 50%;
      height: 50%;
    }
    
    #image img:hover {
      width: 100%;
      height: 100%;
    }
    

提交回复
热议问题