在SQL中对div进行排序 [英] Sorting div's like in SQL
问题描述
我有一个小要求.我正在为客户端的应用程序中做一个小小的用户管理部分.他们希望能够将用户拖放到组中.我完成了拖放操作,并使用Ajax更新了数据库,使其平滑并且用户仅看到加载栏几秒钟.我现在遇到的问题是我要设置div的样式并对其进行整齐的排序,因此在拖放之后,我可以调用我的方法,它将对页面进行样式设置.我不是在要求巨大的代码转储,我只是想知道是否有人在任何事物中遇到过这种事情,因此我可以尝试在我的页面中实现它.
预先感谢.
Hi,
I have a small request. I am making a little user management section in an application for a client. They want to be able to drag and drop a user onto a group. The drag and drop I have done, and I update the database with Ajax so its smooth and the user only sees a loading bar for a couple of seconds. The issue I have now is I want to style the divs I have and sort them neatly, so after a drop I can just call my method and it will style the page. Im not asking for a giant code dump, I would just like to know if anyone has come across such a thing in anything really, so that I could try implement it in my page.
Thanks in advance.
推荐答案
尝试看一下这个示例,我使用thnis来排序div:
http://jqueryui.com/demos/resizable/ [
Hi, try looking at this example I use thnis to sort my divs out:
http://jqueryui.com/demos/resizable/[^]
Jonathan
这篇关于在SQL中对div进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!