Bootstrap轮播分页/幻灯片编号问题 [英] Bootstrap carousel pagination / slide numbering issue

查看:269
本文介绍了Bootstrap轮播分页/幻灯片编号问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和许多其他人一样,想要使用Bootstrap轮播来运行可点击和可样式的分页,所以我不必在引导程序的顶部运行额外的jquery插件(例如。innerfade)。

I, like many others, want clickable and styleable pagination to run with the Bootstrap carousel so i don't have to run additional jquery plugins (eg. innerfade) over the top of bootstrap.

我使用这个问题(并回答) Bootstrap Carousel数字活跃图标但到目前为止没有骰子,我无法看到我在这里做错了什么。

I've had a shot using this question (and answer) Bootstrap Carousel Number active icon but so far no dice, I can't see what i'm doing wrong here.

这是我的小摆件 http://jsfiddle.net / adriatiq / V4SBt / (奇怪的是,分页在小提琴中起作用而不是在本地起作用)。如您所见,随着幻灯片的进展,编号不会跳过。

Here's my fiddling http://jsfiddle.net/adriatiq/V4SBt/ (strangely the pagination works in the fiddle and not locally). As you can see, numbering doesn't skip through as the slides progress.

请原谅我糟糕的js技巧。

Please excuse my woeful js skills.

推荐答案

我是看着你的代码。我已根据点击1,2,3号码添加了课程...
但我无法对下一个上一个链接做同样的事情...

I've looked into your code. I've added the class based on clicking on the 1,2,3 numbers... But I was unable to do the same for next prev links...

http://jsfiddle.net/V4SBt/1/

我已经编写了代码,但是已经注释了......在那段代码中,当我试图收听那些点击事件时,我发现了一些奇怪的错误,说明了那些链接上未定义的点击事件。

I've written the code but its commented... In that code I've getting strange error saying Undefined click event on those link when I tried to listen to those click event.

这篇关于Bootstrap轮播分页/幻灯片编号问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆