Why Bootstrap's Carousel left arrow throws errors while the right one works fine?

大城市里の小女人 提交于 2020-01-06 04:36:13

问题


I have created this page http://www.virtuemax.com/projects/urtotal/index.html

Its a static page and built entirely on bootstrap's framework. The carousel works fine but when you click the left arrow to navigate the carousel to the left it throws errors. Can anyone help?


回答1:


Your HTML is not written properly

<div class="carousel-inner">
<img id="floral" src="img/floralOrange.png" alt="">

<div class="item active">
    <img alt="Slide 1" src="img/slide1.jpg">
</div>

<div class="item">
    <img alt="" src="img/slide2.jpg">
</div>
</div>

The first image should be wrapped inside <div class="item"></div> like the other. Also you are including 2 jquery plugin at a time. Remove one to avoid unwanted conflict



来源:https://stackoverflow.com/questions/16114410/why-bootstraps-carousel-left-arrow-throws-errors-while-the-right-one-works-fine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!