jQuery Loop through each div

后端 未结 5 800
暗喜
暗喜 2021-02-05 15:10

I\'m pretty sure this will be a really easy answer for you jQuery whizzes, and I\'m also pretty such it involves a loop of some kind.

I\'m trying to perform essentially

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 15:25

    Just as we refer to scrolling class

    $( ".scrolling" ).each( function(){
        var img = $( "img", this );
        $(this).width( img.width() * img.length * 1.2 ) 
    })
    

提交回复
热议问题