html 文本输入被阻止。仅可通过右键单击使用
我正在开发一个测试页面...
http://www.voradabo.com/iMcuLast/index_clean .html
并且,在检查其功能时发现这些元素被“阻止”,并且只有用户“右键单击”它们才能访问......这是一个奇怪且意想不到的副作用,我需要尽快解决...我已经重新编写了很多次代码,但似乎没有任何效果...请帮助,我已经没有想法了!
预先感谢任何愿意帮助我解决这个“令人费解的谜团”的人
I'm developing a test page...
http://www.voradabo.com/iMcuLast/index_clean.html
and, while checking its functionality found that the elements are "blocked" and only accesible to users if they "right click" over them... this is a strange and unexpected side effect that I need to solve ASAP... I've remade the code a lot of times but nothing seems to work... please help, I've run out of ideas!
thanks in advance for anyone willing to help me solve this "puzzling mistery"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题出在 js_dragDropCookies.js 中的第 43 行:
如果您删除该行,它就会起作用。但是,您想要禁用该选择的原因是可以理解的,因此最好解决它。
在上面的行之后,您可以自己将事件绑定到包含的输入元素,并调用
stopPropagation()
以防止disableSelection()
捕获它:The problem is with line 43 in
js_dragDropCookies.js
:If you take that one line out, it works. However, it's understandable why you want to disable the selection, so it might be better to work around it.
Right after the above line you can bind an event yourself to the contained input elements and call
stopPropagation()
in order to preventdisableSelection()
to capture it:这确实很奇怪。添加某种功能怎么样:
强制工字梁在单击时显示。
This is very strange indeed. How about adding some sort of:
To force the I-beam to show up when it gets clicked on.