Bootstrap Carousel Jumps to top of page when advancing

前端 未结 12 2101
挽巷
挽巷 2021-02-15 03:20

When I advance the slider manually, the slider jumps to the top of the page. How can I prevent this from happening? Help much appreciated! Here\'s the code:

<         


        
12条回答
  •  不知归路
    2021-02-15 03:40

    You can add data-target attribute refering to your carousel: data-target="#carousel"

提交回复
热议问题