Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个新项目,并且我有侧边栏,我希望用户可以随意移动和订购它们。
就像单击框的标题并将其移至顶部一样,将导致框位于顶部。
我怎么做?
$('.sidebar').draggable();
http://jqueryui.com/demos/draggable/ 看看jQuery UI的可拖动功能。