在模式内部/上方显示谷歌选择器 [英] Show google picker inside/over modal

查看:9
本文介绍了在模式内部/上方显示谷歌选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让谷歌驱动器选择器显示在自定义模式或 div 中?我有一个模式,用户可以选择多个提供商,例如谷歌,保管箱.该模式包含其中的所有 js 和 css 文件.因此,当我单击 google drive 时,选择器 iframe 嵌入到 body 并在我的模态后面,尽管我的模态 z-index 是 1030 并且选择器 iframe zindex 是 2292.

Is there a way to show the google drive picker to be shown inside a custom modal or a div? I have a modal where there will be multiple providers user can choose e.g. google, dropbox. That modal contains all the js and css files in it. So when I click on google drive the picker iframe is embedded into body and behind my modal, although my modal z-index is 1030 and picker iframe zindex is 2292.

推荐答案

我只是简单地添加了以下CSS:

I simply added the following CSS:

.picker-dialog-bg {
    z-index: 20000 !important;
}

.picker-dialog {
    z-index: 20001 !important;
}

这篇关于在模式内部/上方显示谷歌选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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