jquery UI droppable 和 sortable 不起作用?
我四处搜寻,找不到解决这个问题的方法。
我正在尝试集成 jqueryUI 可排序和可拖动,但我似乎无法让它工作。
我这里有一个非常基本的演示。我试图将其简化为尽可能简单的实现,因为我在 SO 上发现的所有其他示例都相当复杂。
有谁知道为什么这个基本示例获胜不工作吗?
编辑:我发现是 CSS 类破坏了整个事情。如果你去掉 CSS 类,它就可以正常工作。没有 CSS 类的工作版本 http://jsfiddle.net/e4Z8N/17/ 有谁知道为什么它会这样?
I searched around and couldn't find a solution to this problem.
I am trying to integrate jqueryUI sortable and draggable but I can't seem to get it to work.
I have a VERY basic demo here. I've tried to reduce it to the SIMPLEST implementation possible as all the other examples I found on SO were rather complicated.
Does anyone have any idea why this basic example won't work?
EDIT: I've figured out that it is the CSS class that disrupts the whole thing. If you take away the CSS class it works fine. Working version w/o CSS class http://jsfiddle.net/e4Z8N/17/ Does anyone know why it behaves like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将公差更改为更合适的值。默认为相交。
“触摸”似乎都有效。你可以尝试其他的。
Change the tolerance to a more suitable value. The default is intersect.
"touch" seem to work. You can try the others.