我是新手bootstrap 3並在我的網站上使用Carousel。 我需要創建一個帶有「淡入淡出」效果的傳送帶,並在轉盤下面有4個按鈕,點擊時會觸發圖像之間的轉換。我不想使用bootstrap API提供的默認控件(左/右箭頭和指標)。Bootstrap 3帶按鈕的旋轉木馬
我想創造這樣的事情 - https://moodle.org/
這裏是我到目前爲止的代碼 -
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Carousel Template for Bootstrap</title>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet">
<link href="carousel.css" rel="stylesheet">
</head>
<body style="padding-left: 50px;padding-right: 50px;">
<div id="myCarousel" data-interval="false" class="carousel slide" data-ride="carousel" >
<div class="carousel-inner">
<div class="item active">
<img alt="First slide" src="1.jpg">
<div class="container">
<div class="carousel-caption">
<h1>Example headline.</h1>
</div>
</div>
</div>
<div class="item">
<img alt="Second slide" src="1.jpg">
<div class="container">
<div class="carousel-caption">
<h1>Another example headline.</h1>
</div>
</div>
</div>
<div class="item">
<img alt="Third slide" src="1.jpg">
<div class="container">
<div class="carousel-caption">
<h1>One more for good measure.</h1>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
<a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div><!-- /.carousel -->
<div align="center">
<p>Carousel with auto-slide disabled!</p>
</div>
<!-- FOOTER -->
<footer>
<p class="pull-right"><a href="http://getbootstrap.com/examples/carousel/#">Back to top</a></p>
<p>© 2014 Company, Inc. · <a href="http://getbootstrap.com/examples/carousel/#">Privacy</a> · <a href="http://getbootstrap.com/examples/carousel/#">Terms</a></p>
</footer>
</div><!-- /.container -->
<script src="./Carousel Template for Bootstrap_files/jquery.min.js"></script>
<script src="./Carousel Template for Bootstrap_files/bootstrap.min.js"></script>
<script src="./Carousel Template for Bootstrap_files/docs.min.js"></script>
</body></html>
如果你需要更多的控制,我會用不同的滑塊。 Bootstrap旋轉木馬似乎相當有限。 – Tomanow
究竟是什麼,你的問題? – jww
你可能會對這個感興趣:http://wowslider.com/html5-image-slider-box-stack-v-demo.html – V31