如果div是5个div中的第3个div,它应该放在div的顶部,并将其他div推到滑动到顶部的div下面,我该如何将div滑动到页面顶部呢?
我找到的最接近的结果是:http://biostall.com/demos/swap-and-reorder-divs-smoothly-using-jquery/
唯一的问题是,它正在与另一个div交换位置,我希望它滑动到所有div的顶部
演示
如果div是5个div中的第3个div,它应该放在div的顶部,并将其他div推到滑动到顶部的div下面,我该如何将div滑动到页面顶部呢?
我找到的最接近的结果是:http://biostall.com/demos/swap-and-reorder-divs-smoothly-using-jquery/
唯一的问题是,它正在与另一个div交换位置,我希望它滑动到所有div的顶部
演示