登陆可实现PC、移动端同步进度.
如何创建轮播
以下实例创建了一个简单的图片轮播效果 :
<div id="demo" class="carousel slide" data-ride="carousel">
<!-- 指示符 -->
<ul class="carousel-indicators">
<li data-target="#demo" data-slide-to="0" class="active"></li>
<li data-target="#demo" data-slide-to="1"></li>
<li data-target="#demo" data-slide-to="2"></li>
</ul>
<!-- 轮播图片 -->
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://img11.360buyimg.com/da/jfs/t14635/313/537214634/188351/d5d23fcb/5a30da83Nbc124380.jpg">
</div>
<div class="carousel-item">
<img src="https://img11.360buyimg.com/da/jfs/t14419/276/543521012/97503/a0c34b9/5a310106Nbc61ad65.jpg">
</div>
<div class="carousel-item">
<img src="https://img12.360buyimg.com/da/jfs/t12040/365/2282518742/197444/b45a2120/5a38e356Nfb55a3b3.jpg">
</div>
</div>
<!-- 左右切换按钮 -->
<a class="carousel-control-prev" href="#demo" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#demo" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
轮播图片上添加描述
<div class="carousel-item">
<img src="https://img11.360buyimg.com/da/jfs/t14419/276/543521012/97503/a0c34b9/5a310106Nbc61ad65.jpg">
<div class="carousel-caption">
<h3>第一张图片描述标题</h3>
<p>描述文字!</p>
</div>
</div>
- 还没有人评论,欢迎说说您的想法!