jQuery可拖动文本选择错误 [英] jQuery draggable text selection bug

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

问题描述

我不确定这是否是错误-但是在此示例中,无法选择可以拖动的元素下方的文本.

I am not sure if this is a bug - but in this example there is no way to select the text underneath the elements that can be dragged.

与表单元素相同的问题.

Same issue with form elements.

http://jqueryui.com/demos/draggable/handle.html

有什么想法吗?

推荐答案

如果查看该页面的源代码,就会看到它的调用

If you look at the source code for that page, you'll see that it calls

$("div, p").disableSelection();

...明确禁用了页面上所有divp的选择,包括可拖动元素下方的选择.

... which explicitly disables selection on all divs and ps on the page, including those beneath the draggable elements.

这篇关于jQuery可拖动文本选择错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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