引导轮播无法按角度工作

时间:2020-02-14 05:56:09

标签: html angular bootstrap-4

我正在尝试制作产品卡。动态将产品照片上传到该卡。但是照片倒过来了。

     <div class="container">
      <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"  *ngFor="let item of productDetail.productImages">
        <ol class="carousel-indicators">
          <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        </ol>
        <div class="carousel-inner">
          <div class="carousel-item active" >
            <img class="d-block w-100" src="{{item.imagePath}}" alt="First slide">
          </div>
        </div>
        <a class="carousel-control-prev" href="#carouselExampleIndicators" 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="#carouselExampleIndicators" role="button" data-slide="next">
          <span class="carousel-control-next-icon" aria-hidden="true"></span>
          <span class="sr-only">Next</span>
        </a>
      </div>

    </div>  

0 个答案:

没有答案