我的旋转木马有问题。它不会滑动。我已经尝试了很多,以至于我的头很痛。问题是它只停留在一张照片上并且箭头不起作用。
包括文件:
<head>
<!--- START Styles --->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="http://localhost/mywebside/css/bootstrap.css" type="text/css"/>
<link rel="stylesheet" href="http://localhost/mywebside/index.css" type="text/css" />
<!--- END Styles --->
<!--- START Scripts --->
<script type="text/javascript" src"http://localhost/mywebside/js/bootstrap.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src"http://localhost/mywebside/js/carousel.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.carousel').carousel()
})
</script>
<!--- END Scripts --->
</head>
HTML:
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item"> <img src="img/Wood.png"></div>
<div class="item"> <img src="img/Stone.png"></div>
<div class="item"> <img src="img/dirt.png"></div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>