插入引导转盘的手柄?

时间:2016-12-22 20:57:04

标签: javascript jquery html css twitter-bootstrap

我试图制作旋转木马以显示带有引导程序的文本推荐。我把这个片段包含在这里。我包括了把手,但它们没有工作,所以我删除了它。请告诉我这是什么问题。我包含了示例中给出的代码。它适用于示例,但不是在我的页面中插入相同的代码时。

codepen

if (wcscmp(fileInfo.szTypeName, L"JPG File") == 0)
{

//Code here

}
.carousel-content {
  color: white;
  align-items: center;
  padding: 5%;
}
#text-carousel {
  width: 100%;
  height: 200px;
  background-color: #0489B1;
}
#testimonials {
  background-color: #0489B1;
  color: white;
  text-align: center;
}

1 个答案:

答案 0 :(得分:0)

使用可选的选项对象初始化轮播并开始循环浏览项目。

vim ~/Desktop/myprogram.c

活动:

$('#text-carousel').carousel({ interval: 2000 }); 调用幻灯片实例方法时会立即触发此事件。

slide.bs.carousel

$('#text-carousel').on('slide.bs.carousel', function () { console.log('SLIDE INVOKED') }) 当轮播完成幻灯片转换时会触发此事件。

slid.bs.carousel

如果您使用的是v4,请尝试使用3.7:

https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js

Documentation