[英]How do you send a mousemove event from an iframe back to the parent using jquery?
Using jquery, how would I send an iframe's window mousemove events back to its parent, and the parent will see the event with the mouse coordinates mapped to it's own window? 使用jquery,我如何将iframe的窗口mousemove事件发送回其父级,并且父级将看到具有映射到其自身窗口的鼠标坐标的事件? Both the iframe and parent are on the same domain.
iframe和父项都在同一个域中。
I solved this problem by overlaying the iframe with an absolutely positioned transparent div. 我通过用绝对定位的透明div覆盖iframe来解决了此问题。 This way, the parent always gets the mousemove events.
这样,父级始终会获得mousemove事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.