gpt4 book ai didi

javascript - 使用 iframe-resizer 插件高度为 0 的 iframe

转载 作者:行者123 更新时间:2023-11-28 05:37:30 24 4
gpt4 key购买 nike

我有一个带有一些 iframe 的页面,我使用 iframe-resizer 插件来自动调整 iframe 的大小,但它有一个非常奇怪的行为:一开始只有一个 iframe 可见,其他的都显示:无。有时,当我从一个 iframe 切换到另一个 iframe 时,新的 iframe 在 Firefox 上的高度为 0,在 Chrome 上的高度为 4398px(太高),常见的行为是,调整浏览器大小,iframe 会获得正确的高度。

我能做什么?

最佳答案

这是 FireFox 中的一个错误。您可以使用 visibility: hide 而不是 display: none 来解决此问题。

关于javascript - 使用 iframe-resizer 插件高度为 0 的 iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39237622/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com