一个人如何获得与此卡相同的转盘?

时间:2019-05-20 16:34:35

标签: php bootstrap-4

我正在尝试构建一个简单的卡片轮播,如您在图片中看到的:example of what I want

使用boostrap 4,但我似乎做得不好,有人可以帮我吗?

我之前曾尝试过几次,但这是我最后一次尝试:

<section>
  <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
    <div class="carousel-inner">

      <div class="carousel-item active">
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto1.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
            </div>
          </div>
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto2.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
            </div>
          </div>
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto3.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
            </div>

            <div class="carousel-item active">
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto1.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
            </div>
          </div>
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto2.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
            </div>
          </div>
          <div class="card">
            <img class="card-img-top" src="../resources/img/ss_produto3.jpg" alt="Card image cap" style="width:200px; height: 200px;">
            <div class="card-body">
              <h5 class="card-title"><a href="#">Card title</a></h5>
              <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
            </div>

          </div>
        </div>



        <!-- left and right arrows -->
        <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
          <span class="carousel-control-prev-icon" aria-hidden="true"></span>
          <span class="sr-only">Previous</span>
        </a>
        <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
          <span class="carousel-control-next-icon" aria-hidden="true"></span>
          <span class="sr-only">Next</span>

      </div>
</section>

我希望有类似图片的内容,但我会像这样display

0 个答案:

没有答案