加载时 jQuery Nivo 滑块中的图像意外出现

发布于 2024-11-26 15:57:36 字数 260 浏览 2 评论 0原文

我是从其他问过同样问题的人那里转发的。

因此,我正在一个实现了 Nivo 滑块的网站上工作,我遇到的问题是,当我的页面加载(新鲜或缓存后)时,图像全部直接显示在页面下方,并且当页面完全显示时加载,然后图像消失并且幻灯片动画开始。

在这里查看:www.tigergolfandspatours.com/thailand2.html

给出的答案是将 style="display:none" 添加到除第一张幻灯片之外的所有幻灯片中,但它不起作用。还有其他建议吗?

I am reposting this from someone else who asked the same question.

So I'm working on a site where I've implemented the Nivo slider and the problem I have is that, when my page loads (fresh or after cached) is that the images all show up straight down the page and when the page fully loads, then the images disappear and the slide animations begin.

Check it out here: www.tigergolfandspatours.com/thailand2.html

the answer was given to add style="display:none" to all of the slides except the first one, but it's not working. any other suggestions?

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

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

发布评论

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

评论(1

绝不放开 2024-12-03 15:57:36

无显示:没有不行。您需要为包含滑块(图像)的 div 提供以下属性。假设 div 具有包含图像的滑块类。

    div.slider { overflow: hidden; }

no display:none wont do. You need to give the following property to the div containing slider (images). lets assume div has class slider that contain images.

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