我怎样才能让旋转木马继续骑自行车? [英] How can I keep carousel keep cycling?

查看:94
本文介绍了我怎样才能让旋转木马继续骑自行车?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然, http://twitter.github.com/bootstrap上的演示页面/javascript.html#carousel 似乎在旋转木马到达幻灯片中最右边的图片后停止旋转。

Apparently, the demo page on the http://twitter.github.com/bootstrap/javascript.html#carousel seems to have carousel stop rotating after it reaches the right most picture in the slide.

演示使用 $('#myCarousel')。carousel()开始轮播。

我试过

$('#myCarousel').carousel()

$('#myCarousel').carousel('cycle')

但轮播在到达最后一张照片时一直停止。

but carousel kept stopping when it reaches to the last picture.

I我们在网上看到一些帖子,人们实际上想要阻止它永远骑自行车,就像3周前一样。
http://groups.google.com/group / twitter-bootstrap / browse_thread / thread / 9eeedbb0e68789e3 / bf99468117bd669a

I have seen some posts on the web that people actually want to stop it from cycling forever, which was posted like 3 weeks ago. http://groups.google.com/group/twitter-bootstrap/browse_thread/thread/9eeedbb0e68789e3/bf99468117bd669a

我应该做什么让我的旋转木马在到达最后一张照片后继续旋转?

What should I do so that my carousel will continue rotating after it reaches the last picture?

推荐答案

这实际上是一个已在2.0.2中修复的错误

This is actually a bug that has been fixed in 2.0.2

您可以尝试删除bootstrap-carousel.js中的第86行,

You can try deleting line 86 in bootstrap-carousel.js which is,

if (!$next.length) return

参见: issue 2036

这篇关于我怎样才能让旋转木马继续骑自行车?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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