手记

怎么过滤span标签,能否进行解答

根据以下代码片段,补充代码实现轮播图效果;
<div id="carousel-example-generic" class="carousel slide">
<!-- 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>

<div class="carousel-inner" role="listbox">
<div class="【D】">
<img src="../img/1.jpg" alt="...">
<div class="carousel-caption">
</div>
</div>

<div class="【A】">
  <img src="../img/2.jpg" alt="...">
  <div class="carousel-caption">
  </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>

A: item
B: carousel-indicators
C: carousel slide
D: item active
E: carousel-inner
F: carousel-control

0人推荐
随时随地看视频
慕课网APP