将不同的样式应用于一页上运行的 2 个 nivo 滑块实例
我们在一页上有两个 nivo slider 实例。一个实例显示的图像尺寸与另一个实例不同。如何对这两个实例设置不同的样式?具体来说,我在定位导航按钮时遇到困难。我尝试创建“slider2”样式,但无法弄清楚如何将其应用于控制导航按钮的主题默认类。
We have two instances of nivo slider on one page. One instance displays a different size image than the other. How can I style these two instances differently? Specifically, I am experiencing difficulty in positioning the navigation buttons. I have attempted to create a 'slider2' style, but cannot figure out how to apply this to the theme-default class that controls the navigation buttons.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
给每个 nivo 滑块一个不同的 ID 怎么样?
然后在 css 中您可以执行如下操作:
现在您可以通过先输入相关 ID 来控制每个滑块按钮/导航。
Houw about giving each nivo slider a diffrent ID ?
and then in the css you can do something like this:
And now you can control each slider buttons/navigation by typing the relevant ID first.