我的bootstrap轮播代码中的箭头没有正确对齐

时间:2014-09-24 07:26:42

标签: html twitter-bootstrap alignment carousel

我在网站上尝试过这段代码:



    <div class="container">
    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="3000">

  <!-- Indicators -->
  <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>



  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
      <img src="DESIGNS/arcs.jpg" alt="arc" class="img-responsive"/>
      <div class="carousel-caption">
        ...
      </div>
    </div>
    <div class="item">
      <img src="DESIGNS/carmelas.jpg" alt="carmela" class="img-responsive"/>
      <div class="carousel-caption">
        ...
      </div>
    </div>
    ...
  </div>

  <!-- Controls -->
      <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
  </a>
</div>
&#13;
&#13;
&#13; 侧面按钮与图片不重叠。相反,侧箭仅停留在右侧。

帮助。我该怎么做或改变?

1 个答案:

答案 0 :(得分:0)

您的代码运行正常

见这个

DEMO