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.
我想重新触发父文档表单iframe文档的鼠标滚轮事件,可以吗?我怎样才能实现它?
我在朋友的帮助下找到了灵魂:- 我们可以将 iframe 鼠标滚轮绑定到父文档鼠标滚轮。
(例如) this.bind(jQuery(document.getElementById("iframeid").contentDocument),"mousewheel",this.onmousewheel);
仅当两个页面位于同一域中时,这才会有所帮助。因为 javascript 安全策略不允许跨域通信。