iframe问题时,我打开pdf对话框后面的pdf [英] Iframe issue when i open pdf dialog box goes behind pdf

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

问题描述

我在我的网站面临很大的问题,即使在搜索很多我没有找到任何完美的解决方案。

I am facing big issue in my site, even after googling lot of I didn't find any perfect solution.

在我的网站,我已经包括iframe一页用于查看pdf文件,但当我打开对话框它后面的pdf。我知道的原因,pdf插件不渲染作为页面的一部分,这就是为什么它总是显示在顶部。

In my web site I have included iframe in one page for viewing pdf files, But when I open dialog box it goes behind that pdf. I know the reason that pdf plugin is not rendering as part of page that's why it always display on the top.

无论如何,我需要显示对话框的顶部pdf。我试过以下解决方案但没有什么工作,
调整z-index,
pdfobject,
embed标签,
我不能根据pdf调整我的对话框。

Anyhow I need to display dialog box on the top of the pdf. I have tried following solution but nothing work, Adjusting z-index, pdfobject, embed tag, I can't adjust my dialog box according to pdf.

除了这些完美的解决方案,如果你有那么请帮助这个。

Except these any of the perfect solution if you have then please help regard this.

这是我的示例页面

This is my sample page

谢谢。

推荐答案

我有一个类似的问题,一个文件上传表单,我在一个jquery ui对话框中使用。我使用这个片段:

I've had a similar problem with a file upload form I use thats within a jquery ui dialogue. I use this snippet:

 function getMaxZ() {
        var opt = { inc: 5 };
        var def = { inc: 10, group: "*" };
        $.extend(def, opt);
        var zmax = 0;
        $(def.group).each(function () {
            var cur = parseInt($(this).css('z-index'));
            zmax = cur > zmax ? cur : zmax;
        });
        zmax += def.inc;
        return zmax;
    }
     var zIndexMax=getMaxZ();

$("#"+gridName).css({"z-index": Math.round(zIndexMax)});

在我的弹出对话框出现在jquery ui后面时,别。希望它会帮助你。

Works like a charm for me, before my popup dialogues would appear behind the jquery ui one, now they don't. Hopefully it'll help you out.

这篇关于iframe问题时,我打开pdf对话框后面的pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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