具有箭头控制进度条的自举轮播

时间:2019-02-26 11:55:06

标签: jquery css html5 twitter-bootstrap carousel

我正在使用引导程序创建滑块。 滑块上有箭头和项目符号。

<div id="codeplus_carousel" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#codeplus_carousel" data-slide-to="0" class="active">
        <li data-target="#codeplus_carousel" data-slide-to="1">
        <li data-target="#codeplus_carousel" data-slide-to="2">
        <li data-target="#codeplus_carousel" data-slide-to="3">
    </ol>

    <!-- Wrapper per le Slide-->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="img_1.jpg" alt="Uno">
        </div>

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

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

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

<a class="left carousel-control" href="#codeplus_carousel" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true">
        <span class="sr-only">Previous
</a>
<a class="right carousel-control" href="#codeplus_carousel" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true">
        <span class="sr-only">Next
</a>

我要添加由箭头控制的进度条吗?有可能吗 有人可以帮助我了解如何做吗?

0 个答案:

没有答案