嵌入式PDF总是出现在绝对定位的元素上 [英] Embedded PDF always appearing over Absolutely positioned elements

查看:85
本文介绍了嵌入式PDF总是出现在绝对定位的元素上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个嵌入了PDF的页面,并尝试在当前显示的PDF文档上弹出下拉菜单,jQuery UI对话框等。



问题在于PDF始终处于前位置,所以任何动态创建的元素都出现在它后面。在DHTML的时代,这是闪回的常见问题,在这里我们再次提到。



这是从PDF中期望的行为,还是存在如何覆盖它?

解决方案

尝试填充元素下的iframe。


We have a page where a PDF is embedded, and are trying to pop drop-down menus, jQuery UI dialogs, etc. over the PDF document which is currently displayed.

The problem is that the PDF is ALWAYS taking the 'front' position, so any elements dynamically created appear behind it. This was a common problem with Flash back in the days of DHTML, and here we are again.

Is this the kind of behavior to expect from PDF, or is there a way to override it? Thanks in advance for the help.

解决方案

try "shimming" an iframe under the elements.

这篇关于嵌入式PDF总是出现在绝对定位的元素上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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