我有一个使用jQuery1.3.2的可拖式容器。最近,我从1.7.1升级到jQuery1.5.1和UI1.8.13,现在突然间,一些以前用来拖拽整个容器和内容的可拖式容器现在只拖拽容器中的任何东西。
,例如
<div class="dragme" drag_action="hex" value="E7E7E7" id="default_color"><input type="text" maxlength="6" size="6" name="colorpick" id="colorpickerField1" value="0969A2" /></div>
这将将文本框输入拖出,而不是将其容器和文本框输入放在一起。
--我正在用这个函数启动拖动
$(".dragme").draggable({
scroll: true,
scrollSensitivity: 100,
scrollSpeed: 100,
cursorAt: { cursor: 'move', top: 27, left: 27 },
helper : 'clone', // you will drag a copy of the item around
revert : true,
start: function(e,ui){
$(this).addClass('fade'); // fade out original item while dragging the clone
ui.helper.find('.caption').text("I'm being dragged!"); // message in clone
},
stop: function(e,ui){
$(this).removeClass('fade'); // remove fade if dragged item is released
}
});
有人有什么想法吗?提前谢谢。
发布于 2011-06-10 02:58:57
我升级到jQuery1.8.9,现在它可以工作了。
https://stackoverflow.com/questions/6259582
复制相似问题