twitter bootstrap carousel disappears

后端 未结 1 1333
傲寒
傲寒 2021-02-20 15:54

I think this might be a simple issue. but I cant seem to figure this one out. the best way to explain it is for you to see

Link : http://dynastyfireplaces.3dcartstores

相关标签:
1条回答
  • 2021-02-20 16:48

    The problem comes from the .carousel-controls that should not be inside .carousel-inner : the carousel is trying to show the controls as items, causing the disappearance.

    Try this :

    <div class="carousel slide" id="myCarousel">
        <div class="carousel-inner">
            <div class="item">
                <img alt="" src="...">
            </div>       
            <div class="item">
                <img alt="" src="...">
            </div>   
            <div class="item active">
                <img alt="" src="...">
            </div>
        </div>
        <a data-slide="prev" href="#myCarousel" class="left carousel-control">‹</a>
        <a data-slide="next" href="#myCarousel" class="right carousel-control">›</a>
    </div>
    
    0 讨论(0)
提交回复
热议问题