jQuery Drag n Drop for Twitter bootstrap 2.0?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9590821/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 11:01:39  来源:igfitidea点击:

Drag n Drop for Twitter bootstrap 2.0?

jquerygwtdrag-and-droptwitter-bootstrapjquery-ui-draggable

提问by user1216398

I found this slick drag n drop pagefor Twitter Boostrap. Is this using GWT or purely twitter bootstrap? Does anyone know if there is a plugin to allow drag n drop functionality with Twitter Bootstrap 2.0?

我为 Twitter Boostrap找到了这个光滑的拖放页面。这是使用 GWT 还是纯粹的 twitter bootstrap?有谁知道是否有插件允许使用 Twitter Bootstrap 2.0 进行拖放功能?

Thanks

谢谢

回答by Quasipickle

Bootstrap is essentially just a stylesheet with some javascript modules included in the download. There's no reason existing drag and drop functionality can't also be used on a page that includes the Bootstrap styles.

Bootstrap 本质上只是一个样式表,下载中包含一些 javascript 模块。现有的拖放功能没有理由也不能用于包含 Bootstrap 样式的页面。

回答by Morris Singer

You can do a build of jQuery UI that is limited to the drag-drop functionality, and, at least with Bootstrap 3 (where I have done this) it is able to coexist.

您可以构建仅限于拖放功能的 jQuery UI,并且至少在 Bootstrap 3(我已经这样做过)中它能够共存。

回答by Inactive - SO wronged Monica

jQuery UI can do this, but it is incompatible with Bootstrap. There is a project combining the Bootstrap with jQuery UI called jQuery UI Bootstrapthat can be used as a drop-in replacement for Bootstrap in most cases.

jQuery UI 可以做到这一点,但它与 Bootstrap 不兼容。有一个将 Bootstrap 与 jQuery UI 相结合的项目,称为jQuery UI Bootstrap,在大多数情况下,它可以用作Bootstrap 的直接替代品。