jquery rotate image onclick

前端 未结 7 696
难免孤独
难免孤独 2020-12-17 10:30

I am trying to achieve this (90 degree rotation), but it fails without errors. This image is within a TAG where it has already a toggle jque

7条回答
  •  既然无缘
    2020-12-17 11:13

    This is the example to rotate image 90deg as following code bellow:

    $(document).ready(function(){
        $("img").click(function(){
             $(this).rotate(90);
        });
     });
    

提交回复
热议问题