Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Jquery UIDraggable并Contenteditable没有在同一个Div元素上一起工作。有什么解决方法吗?
Draggable
Contenteditable
Div
示例:jsfiddle
jQuery 可拖动的原因是劫持了元素的点击事件。您可以在代码中使用此修复:
$('.edit').draggable().bind('click', function(){ $(this).focus(); })
小提琴:http: //jsfiddle.net/EexHH/3/