adding pixels to jquery .css() left property

后端 未结 6 1236

This is my code:

var lef=$(this).css(\"left\");
var top=$(this).css(\"top\");
alert(lef);
$(this).after(\"
6条回答
  •  有刺的猬
    2020-12-09 15:36

    can try

    $(this).css("left", function(){
    return ($(this).css("left")+150);
    });
    

    for any complex modification as well

提交回复
热议问题