google-oauth - 如果我在 iframe 外部单击,一键登录隐藏
问题描述
我已经在我的网站中集成了Google On Tap Login 。我想要的是,在我单击 I 框架标题上的X图标之前,iframe 不应关闭,但默认情况下,如果用户单击页面上的任何位置,它就会关闭。
如果用户在 iframe 之外单击,我想禁用 iframe 的关闭。
从文档[Toggle outside tap to close One Tap
] 中,您可以在将data-cancel_on_tap_outside
属性设置为 时禁用此行为false
。不幸的是,这不起作用。
任何帮助将不胜感激。
<div
id="g_id_onload"
data-client_id=xxxxxxxxxxxxxx.apps.googleusercontent.com"
data-cancel_on_tap_outside=true
>
</div>
解决方案
我的错误,清除浏览器缓存后,一切正常。
推荐阅读
- javascript - 平滑过渡以使元素出现
- android - 使用 PixelCopy 截屏
- forms - FlaskWTF 在每个视图/页面上都使用相同的表单
- javascript - 将动态参数错误地替换为函数
- lua - 为什么 defold 渲染摄像机在 self.data.lpos 中崩溃?
- node.js - 如何从条带 API 调用中调试错误?需要跨事件发射器的 node.js 堆栈跟踪?
- flutter - Flutter Dart Bottomsheet 错误上下文 = 上下文
- python - Psycopg2 在类内自动重新连接
- jenkins - 并行阶段声明性管道内的选择参数
- python - 带有 pandas 和 altair 的表格气泡图