隐藏使用 Galleria JQuery 插件制作的画廊

发布于 2024-11-27 22:04:16 字数 254 浏览 11 评论 0原文

我正在使用 Galleria 在网站中构建我的画廊,它运行良好,但我想将其提升到一个新的水平。

我想知道这里是否有人尝试过仅在全屏模式下拥有 Galleria 实例。我想要一个按钮,当单击它时以全屏模式打开图库,当图库关闭时我想隐藏它。我尝试使用 jquery.hide() 隐藏 Galleria 使用的父 div,但首先图库仍然可见,其次,当我第二次单击按钮全屏打开它时,它会抛出错误。

有人成功做到这一点吗?

如果我说得不够清楚,请告诉我。

I'm using Galleria to build my gallery in a website and it works fine but I want to take it to the next level.

I would like to know if someone here has tried to have an instance of Galleria in full screen mode only. I want a button to open a gallery in full screen mode when it's clicked and when the gallery is closed I would like to hide it. I tried to use jquery.hide() to hide the parent div used by galleria but first the gallery is still visible and second, it throws an error the second time I click the button to open it full screen.

Has someone succeded doing this?

If I didn't make myself clear enough please let me know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薯片软お妹 2024-12-04 22:04:16

// 点击后

$("#galleriaDiv").addClass("myClass");

.myClass { visibility: hidden; }

// after click

$("#galleriaDiv").addClass("myClass");

.myClass { visibility: hidden; }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文