nivo滑块问题
我在我的网页中使用了 nivo-slider。我需要在我的单页中实现许多nivo-slider。我已经成功实施了。但是,如果我单击上一个图标,总滑块图像就会更改。请帮我。谢谢
I used nivo-slider in my web page. I need to implement many nivo-slider in my single page. I have successfully implement it. But, if i click the previous icon total slider images were changed. Please help me. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其原因可能是相同的 id 使用。不同的滑块应该有不同的 id。
更改 id 名称后,您还需要调整 javascript 中的 nivo 函数以适应新的 id
例如,如果这是您的代码,
对于具有 id 的三个滑块来说应该是这样的:slider-1、slider-2、滑块3
The reason for this is probably the same id usage. You should have different id's for different sliders.
After you change the id names, you will also need to make adjustments to your nivo function in javascript to accommodate new ids
For example if this is your code
It should be like this for three sliders with ids : slider-1, slider-2, slider-3