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.
我在 html5 中有一个 iframe,它的源是 pdf 文档。想要对 iframe 元素的点击和滑动事件执行一些操作。我已尝试绑定事件,但 iframe 未触发事件。如何为 iframe 捕获这些事件?谢谢
这是不可能的。
PDF 由 PDF 浏览器插件显示在 iframe 中,就像 Flash 内容由 Flash 插件显示一样。您不能像捕获其他 DOM 事件一样从插件容器视图中捕获事件。