How to position a div dynamically below another?

前端 未结 4 1004
暗喜
暗喜 2021-02-08 01:59

I\'m trying to use jQuery to detect the position of a div (#olddiv), so I can use that position to place another div (#newdiv) exactly below it. The ri

4条回答
  •  北海茫月
    2021-02-08 02:49

    Looks like a typo, does fixing:

    'top', right
    'right', top
    

    help at all?

    The divs need to be positioned absolutely or relatively in order for this code to work as well.

提交回复
热议问题