加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap-3 – Bootstrap 3默认旋转木马:如何将指针向

发布时间:2020-12-18 00:10:49 所属栏目:安全 来源:网络整理
导读:将Bootstrap 3的转盘指示器向下和向外移动到滑动容器之外是一种简单(和干净的)方法,因此它不会覆盖在照片上?请参阅下图,我想移动指标。 Link to live code div class="container"div id="carousel-example-generic" class="carousel slide" data-ride="ca
将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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读