Jquery UI Draggable Absolute Instead of Relative?

前端 未结 4 1911
半阙折子戏
半阙折子戏 2021-02-18 20:18

I have a div containing a few jquery draggables, however if at any point I remove one of these draggables from the page then this can move the rest of them as they are positione

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-18 21:17

    Why doesn't position:absolute work for you?

    Since absolutely positioned elements are no longer part of the document flow, each of your three

    s are placed at 0,0 of its containing (positioned) element. Thus, it's up to you to work out the starting position of your draggables.

提交回复
热议问题