Remove CSS “top” and “left” attributes with jQuery

后端 未结 13 1277
故里飘歌
故里飘歌 2020-12-02 07:07

Im building a draggable map that when the map is dragged the element is given a \'left\' and \'top\' attribute with values for each as so...

13条回答
  •  心在旅途
    2020-12-02 08:01

    $.fn.removeCss=function(toDelete){
    
        var props=$(this).attr('style').split(';');
    var tmp=-1;
    for( var p=0;p

    Delete safely with this plugin!

    $('myDiv').removeCss('color');

提交回复
热议问题