我无法让 Bootstrap 轮播工作。我查看了所有帖子,复制了所有示例,但没有任何效果。下面是我的代码。当我单击下一个按钮时,什么也没有发生,也没有自动前进。什么不见了?
<!DOCTYPE html>
<html lang="en">
<head>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/site.css" type="text/css" media="screen,projection">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="span12">
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="img/img1.png" alt="">
</div>
<div class="item">
<img src="img/img2.png" alt="">
</div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
<script>
$(document).ready(function () {
$('.carousel').carousel({
interval: 2000
})
});
</script>