Title1

Title2

Title3

20-3 bootstrap carousel 輪播

一、架構

  1. 例:http://bootstrap.ugm.com.tw/carousel.html
    
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
          <!-- 指標 -->
          <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            <li data-target="#carousel-example-generic" data-slide-to="2"></li>
          </ol>
    
          <!-- 輪播圖片 -->
          <div class="carousel-inner" role="listbox">
            <div class="item active">
              <img src="https://unsplash.it/1920/850/?image=1" alt="...">
              <div class="carousel-caption">
                1
              </div>
            </div>
            <div class="item">
              <img src="https://unsplash.it/1920/850/?image=2" alt="...">
              <div class="carousel-caption">
                2
              </div>
            </div>
            <div class="item">
              <img src="https://unsplash.it/1920/850/?image=3" alt="...">
              <div class="carousel-caption">
                3
              </div>
            </div>
          </div>
    
          <!-- 控制 -->
          <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
          </a>
          <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
          </a>
        </div>

     

  2.