Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/475.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
覆盖引导转盘Javascript_Javascript_Jquery_Twitter Bootstrap_Carousel - Fatal编程技术网

覆盖引导转盘Javascript

覆盖引导转盘Javascript,javascript,jquery,twitter-bootstrap,carousel,Javascript,Jquery,Twitter Bootstrap,Carousel,将引导转盘Javascript覆盖为活动三项。 我有麻烦与其他人解决方案在转盘上显示多个项目,解决方案是复制图像到一个活动项目。效果不是我想要的,它会从整个复制幻灯片上滑下,并使用复制幻灯片切换到下一个活动编号 $('#myCarousel').carousel({ interval: 4000 }) $('.carousel .item').each(function(){ var next = $(this).next();

将引导转盘Javascript覆盖为活动三项。 我有麻烦与其他人解决方案在转盘上显示多个项目,解决方案是复制图像到一个活动项目。效果不是我想要的,它会从整个复制幻灯片上滑下,并使用复制幻灯片切换到下一个活动编号

$('#myCarousel').carousel({
        interval: 4000
      })

      $('.carousel .item').each(function(){
        var next = $(this).next();
        if (!next.length) {
          next = $(this).siblings(':first');
        }
        next.children(':first-child').clone().appendTo($(this));

        for (var i=0;i<1;i++) {
          next=next.next();
          if (!next.length) {
              next = $(this).siblings(':first');
              }

          next.children(':first-child').clone().appendTo($(this));
        }
      });
$('myCarousel')。carousel({
间隔时间:4000
})
$('.carousel.item')。每个(函数(){
var next=$(this.next();
如果(!next.length){
next=$(this.sibbines(':first');
}
next.children(':first child').clone().appendTo($(this));
对于(var i=0;i检查:
codepen.io/mephysto/pen/ZYVKRY
看看你能在这里做些什么


但是,默认的引导旋转木马并不是最好的。我强烈建议切换到Owl旋转木马:它对移动设备有更好的支持。

这非常有用,在这个引导版本上有点卡住。但是我仍然感觉到三张幻灯片完全关闭,全新的三张幻灯片在你的链接上生效。但是我喜欢fresh的开始和简单的功能,使我的工作更好。但我仍将等待,看看是否有人能真正帮助我解决我目前的情况,这将帮助我成长和了解更多