简体   繁体   English

如何为bootstrap轮播设置活动幻灯片?

[英]How to set active slide for bootstrap carousel?

I want to reset carousel to first slide after closing it. 我想在关闭后将旋转木马重置为第一张幻灯片。

I am closing carousel using data-dismiss. 我正在使用数据关闭来关闭轮播。

Use this 用这个

Property .carousel(number)

Where number is the slide number. 数字是幻灯片编号。

Or use data attribute -> 或者使用数据属性 - >

data-slide-to="2"

Where "2" is place of the slide 其中“2”是幻灯片的位置

For more info: BootStrap JavaScript Carousel 有关更多信息: BootStrap JavaScript Carousel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM