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

后端 未结 13 1210
故里飘歌
故里飘歌 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:11

    Simply set the CSS property with an empty string, for example with the following code:

    $('#mydiv').css('color', '');
    

    See jQuery Documentation on CSS.

    0 讨论(0)
提交回复
热议问题