是否可以在隐藏的 div 上启动 coda 滑块?

发布于 2024-09-05 04:05:03 字数 172 浏览 3 评论 0原文

我有一个 div id=holder,并且在 coda 滑块内。它工作正常,但为了避免在某些浏览器中闪烁,我决定让holder显示:无,然后在$(document).ready上显示:块

问题是,由于某种原因,当父div显示时:无,尾声滑块没有任何效果。

对于这个问题有什么解决方法或想法吗?谢谢!

i have a div id=holder, and inside a coda slider. it works alright, but to avoid the flickering in certain browsers, i decided to make holder display:none, and then display:block on $(document).ready

The problem is that, for some reason, when the parent div is display:none, the coda slider doesnt have any effect.

any workarounds or ideas for this issue? thanks!

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

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

发布评论

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

评论(1

梦巷 2024-09-12 04:05:21

确保所有 z 索引设置正确。另外,不要不显示任何内容,而是尝试通过将边框设置为 0 等方式使其“不可见”;背景颜色为白色等。

Make sure all the z-indexes are set properly. Also instead of display none, try making it 'invisible' by for example setting borders to 0; background color to white etc.

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