另一种可排序的jQuery [英] A different kind of jquery sortable

查看:83
本文介绍了另一种可排序的jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些大小不同的元素,这些元素在某种程度上按照网格排列(如下图所示),我想适当地拖放这些元素.有可以做到这一点的插件吗?可排序不能正确执行...

I have elements of different sizes that are arranged somewhat acording to a grid (like in the image below) and I want to drag and drop properly those elements. Is there a plugin that would do that? Sortable does not do it properly...

正确"是指它应该正常运行(也就是说,如果我将大的对象拖放到右边,则应该明智地重新排列).也许我只需要看一个能满足我需求的东西,我就可以让它适当地"完成工作

By "properly" I mean it should act normal (meaning if I drag and drop the big one on the right it should rearrange inteligently). Maybe I just need to see one that does what I want and I'll make it do stuff "properly"

如果您将大方块向右移动(外观应如此).

If you move the big block on the right (how it should look like).

我只想要一种重新排列像这样的网格状布局的方法.我可以接受其他想法.

I just want a way to rearrange a grid-like layout like this one. I can accept other ideas..

推荐答案

尝试同位素的重新布局.但也请确保在同位素上查看其其他示例.无论如何...这应该为您提供一个健康的起点.

Try isotope's re-layout. But be sure to look at their OTHER examples on Isotope as well. Anyway...this should give you a healthy starting point.

这篇关于另一种可排序的jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆