将不同的样式应用于一页上运行的 2 个 nivo 滑块实例

发布于 2024-12-14 07:44:15 字数 130 浏览 1 评论 0原文

我们在一页上有两个 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 技术交流群。

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

发布评论

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

评论(1

假扮的天使 2024-12-21 07:44:15

给每个 nivo 滑块一个不同的 ID 怎么样?
然后在 css 中您可以执行如下操作:

#nivo1 .nivo-controlNav { style }
#nivo2 .nivo-controlNav { style }

现在您可以通过先输入相关 ID 来控制每个滑块按钮/导航。

Houw about giving each nivo slider a diffrent ID ?
and then in the css you can do something like this:

#nivo1 .nivo-controlNav { style }
#nivo2 .nivo-controlNav { style }

And now you can control each slider buttons/navigation by typing the relevant ID first.

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