Bootstrap Carousel无法滑动
Bootstrap Carousel fails to slide
这是我目前拥有的代码,我不确定为什么旋转木马不工作。"上一步"/"下一步"按钮不起作用,幻灯片也不会自动滑动。适用于Safari 7.0.6
<!-- Carousel
============================================-->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/Slide 1.jpg" alt="image">
<div class="container">
<div class="carousel-caption">
<h1>Heading</h1>
<p>Paragraph</p>
<p><a class="btn btn-large btn-primary" href="http://pmilessyr.github.io/index.html">Link</a></p>
</div>
</div>
</div>
<div class="item">
<img src="img/Slide 2.jpg" alt="image">
<div class="container">
<div class="carousel-caption">
<h1>Heading</h1>
<p>Paragraph</p>
</div>
</div>
</div>
<div class="item">
<img src="img/Slide 3.jpg" alt="image">
<div class="container">
<div class="carousel-caption">
<h1>Heading</h1>
<p>Paragraph</p>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/bootstrap.js"></script>
<script src="javascripts/scale.fix.js"></script>
这取决于你抛出的错误。我尝试了你的代码放入我的cdns和图像,它工作得很好。因此,carousel部分的html看起来很好。
- 你正在调用静态库在你的脚本源,所以确保这些文件在那里或使用网站的cdn。例:http://jquery.com/download/
如果可以的话,提供有关抛出错误的更多信息
相关文章:
- 如何移除或改进:在Bootstrap Carousel上聚焦风格
- 如何触发Bootstrap Carousel's转盘指示器
- 可以'在IE上的Bootstrap(v3.3.4)中,无法在导航栏下看到Carousel
- Twitter Bootstrap Carousel 在向左或向右滑动控制时不断向上移动
- Bootstrap Carousel无法使用AngularJS
- Bootstrap Carousel transition ON hover only
- Bootstrap 3 carousel lazyload 插件不适用于 jQuery 1.11
- Twitter Bootstrap Carousel使用Joomla及其Mootools
- 如何告诉Bootstrap Carousel转到特定索引
- Twitter Bootstrap Carousel - 如何实现连续慢速滚动
- couldn't get Bootstrap carousel to work with Ember
- UI Bootstrap Carousel(带有Bootstrap 2.3.2)在AngularJS中隐藏和显示时不工作
- 使用bootstrap-carousel.js失败
- Bootstrap Carousel幻灯片2中的第二个谷歌图表没有'不要出现
- Bootstrap 3 Carousel在本地工作,但赢得了't在服务器上滑动
- 为什么我的Bootstrap Carousel没有从第二张幻灯片移动
- Disable Keyevents for Bootstrap Carousel
- jQuery的onclick事件不会在bootstrap carousel中触发
- PHP : Carousel Bootstrap CSS
- Carousel bootstrap with angular js