jQuery UI draggable & position relative, change to absolute on resize

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

I have a problem with jQuery UI. When i set elements resizable, draggable & droppable, like this

$("#ml1,#ml2,#ml3,#ml4,#ml5").resizable({ grid: [ 20, 10 ] }).droppable().draggable();  

,and that i resize one, his position pass to absolute... Why ? When i just set the object resizable & droppable, it's ok, the position style didn't change..

Here is a JSFiddle of the problem: http://jsfiddle.net/NLHYF/

I want that the objects that i resize keep their relative position.

Thank you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!