Show google picker inside/over modal(在模式内部/上方显示谷歌选择器)
问题描述
有没有办法让谷歌驱动器选择器显示在自定义模式或 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;
}
这篇关于在模式内部/上方显示谷歌选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在模式内部/上方显示谷歌选择器


基础教程推荐
- Bokeh Div文本对齐 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01