twitter-bootstrap-3 – Bootstrap 3默认旋转木马:如何将指针向下和向外移动?

将Bootstrap 3的转盘指示器向下和向外移动到滑动容器之外是一种简单(和干净的)方法,因此它不会覆盖在照片上?请参阅下图,我想移动指标。

Link to live code

<div class="container">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- 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="http://placehold.it/1170x300.jpg" alt="...">
</div>

<div class="item">
<img src="http://placehold.it/1170x300.jpg" alt="...">
</div>

<div class="item">
<img src="http://placehold.it/1170x300.jpg" alt="...">
</div>

</div>

<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>

</div><!--//container -->

解决方法

你可以像这样把它们推到滑块下方
.carousel-indicators {
  bottom:-50px;
}

将空间留在圆盘传送带下方,以便推送的指示器不会干扰滑块下面的内容

.carousel-inner {
   margin-bottom:50px;
}

Bootply Demo

相关文章

Bootstrip HTML 查询搜索常用格式模版 &lt;form class=&...
如何在按钮上加红色数字 您可以使用Bootstrap的badge组件来在...
要让两个按钮左右排列,你可以使用 Bootstrap 的网格系统将它...
是的,可以将status设置为布尔类型,这样可以在前端使用复选...
前端工程师一般用的是Bootstrap的框架而不是样式,样式一般自...
起步导入:<linkrel="stylesheet"href="b...