jquery对话框:用iframe拖动对话框 [英] jquery dialog: dragging dialog with iframe inside

查看:120
本文介绍了jquery对话框:用iframe拖动对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在内部使用iframe拖动jQuery对话框时,如果鼠标在拖动时移动框架内容,则该拖动将停止。看来,iframe会自动调整焦点。
有什么办法可以防止这种情况,并使拖动正常吗?

When dragging a jquery dialog with an iframe inside , the drag stops if the mouse goes over the frame contents while dragging. It seems that the iframe takes automatically the focus. is there any way to prevent this and make drag normal?

var iframe=document.createElement('IFRAME');    
$(div).append(iframe)
       .dialog();


推荐答案

这只是我的猜测,所有内容都具有透明的div 100%宽度和高度,同时拖动并确保它位于iframe之上,并在拖动的东西下:)

It's just my guess, but I'd try covering everything with a transparent div 100% width&height while dragging and assuring it's above iframes and under the dragged thingie :)

这篇关于jquery对话框:用iframe拖动对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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