Nivo滑块加载问题
我遇到了奇怪的 Nivo 滑块加载问题,图像的左侧显示了我的滑块在进入网站后的样子(这是错误的),而右侧则显示了一段时间后的样子。
问题是为什么我的图像在包含 div (带有加载动画)之前加载,并且显示在另一个下面?当然,主容器的位置设置为相对,每个容器 img 绝对定位在顶部:0 和左侧:0。有什么想法吗?试图将其放在 jsfiddle 上,但我相信 Nivo 不受支持。
I've strange Nivo Slider loading problem, the left side of the image shows how my slider looks just after entering the website (and this is WRONG) and right - after a while.
The question is why my images are loaded before containing div (with loading animation) and are shown one below another? Of course the main container has position set to relative and every container img is absolutely positioned at top: 0 and left: 0. Any ideas? Tried to put that on jsfiddle, but I believe Nivo isn't supported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
http://nivo.dev7studios.com/support/
下次我将从常见问题解答开始;/对不起。我希望这对将来的人有帮助......
http://nivo.dev7studios.com/support/
Next time I'll start with FAQ ;/ Sorry. I hope this will help somebody in the future...
我遇到了同样的问题,并能够使用以下样式解决它:
I had the same issue and was able to solve it with the following styles:
只需隐藏溢出
Just hide the overflow
您可以尝试将“overflow:hidden”添加到容器元素的 css 中。
You could try adding 'overflow:hidden' to the css for the container element.
我使用 Nivo-Slider 的经验是,当发生这种情况时,nivo-slider.css 未正确链接到 html 页面。仔细检查样式表的链接。
My experience with using Nivo-Slider is when this happens, the nivo-slider.css is not linked correctly to the html page. Double check your links to your stylesheet.