我在 AnythingSlider 中有一个 AnythingSlider 我可以为两个滑块设置当前幻灯片的样式吗?
示例如下: http://ashleybest.co.uk/mottie_is_the_best/index.html
我想做的是将幻灯片“一”上的链接(“Aaaa”、“Bbbb”等)设置为与控制主滑块时控制主滑块的外部链接相同的样式在当前幻灯片上。幻灯片“一”上的链接控制右侧的第二个滑块。
怎么可能呢?
CSS 的外观如下:
.link-1.current, .link-1:hover { text-decoration:underline; color:#BAA5EC; }
.link-2.current, .link-2:hover { text-decoration:underline; color:#BAA5EC; }
.link-3.current, .link-3:hover { text-decoration:underline; color:#BAA5EC; }
.link-4.current, .link-4:hover { text-decoration:underline; color:#BAA5EC; }
.link-a.current, .link-a:hover { text-decoration:underline; color:#BAA5EC; }
.link-b.current, .link-b:hover { text-decoration:underline; color:#BAA5EC; }
.link-c.current, .link-c:hover { text-decoration:underline; color:#BAA5EC; }
.link-d.current, .link-d:hover { text-decoration:underline; color:#BAA5EC; }
Here's the example: http://ashleybest.co.uk/mottie_is_the_best/index.html
What I’m trying to do is style the links ('Aaaa', 'Bbbb' etc) that are on slide ‘one’ the same as the external links that control the main slider when it is on the current slide. The links on slide 'one' control the second slider on the right.
How is it possible?
Here's how the css looks:
.link-1.current, .link-1:hover { text-decoration:underline; color:#BAA5EC; }
.link-2.current, .link-2:hover { text-decoration:underline; color:#BAA5EC; }
.link-3.current, .link-3:hover { text-decoration:underline; color:#BAA5EC; }
.link-4.current, .link-4:hover { text-decoration:underline; color:#BAA5EC; }
.link-a.current, .link-a:hover { text-decoration:underline; color:#BAA5EC; }
.link-b.current, .link-b:hover { text-decoration:underline; color:#BAA5EC; }
.link-c.current, .link-c:hover { text-decoration:underline; color:#BAA5EC; }
.link-d.current, .link-d:hover { text-decoration:underline; color:#BAA5EC; }
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用解决方案演示
HTML
CSS
脚本
With a demo of the solution
HTML
CSS
Script