我在摸不着头脑,为什么 Bootstrap 3 轮播控件(和指示器)链接在我的页面上不起作用。这是一个简单的文档复制粘贴 + 一些 CSS 定制。代码可以在这里查看http://bevog.si.bitcloud.nine.ch/ (#gallery)。
更新:
轮播初始化代码
/* GALLERY */
$('#gallery-carousel').carousel()
轮播标记
<div id="gallery-carousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#bevog-image-1" data-slide-to="0" class="active"></li>
<li data-target="#bevog-image-2" data-slide-to="1"></li>
<li data-target="#bevog-image-3" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active" id="bevog-image-1">
<img src="img/bevog_gallery_01.jpg" alt="Bevog gallery picture title">
</div>
<div class="item" id="bevog-image-2">
<img src="img/bevog_gallery_01.jpg" alt="Bevog gallery picture title">
</div>
<div class="item" id="bevog-image-3">
<img src="img/bevog_gallery_01.jpg" alt="Bevog gallery picture title">
</div>
</div>
<a class="left carousel-control" data-slide="prev" href="#"><span class="icon-prev"></span></a>
<a class="right carousel-control" data-slide="next" href="#"><span class="icon-next"></span></a>
</div>