Increment css top property using jquery

前端 未结 5 1362
醉话见心
醉话见心 2020-12-24 02:03

I have the following div :

What is the best way to

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 02:32

    The simplest way is to use the += operator:

    $( '#new' ).css( 'top', '+=10px' );
    

提交回复
热议问题