<!DOCTYPE html>
<html>
<head>
<title>Bootstrap实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
<script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script src="https://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<style>
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
width: 70%;
margin: auto;
}
</style>
</head>
<body>
<div class="container">
<h2>Carousel Options</h2>
<p>The <strong>wrap</strong> option specifies whether the carousel should go through all slides continuously, or stop at the last slide.</p>
<p>In this example, we have set wrap to "false", which will stop the carousel from sliding when the last item is shown.</p>
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li class="item1 active"></li>
<li class="item2"></li>
<li class="item3"></li>
<li class="item4"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="/images/img_chania.jpg" alt="Chania" width="460" height="345">
</div>
<div class="item">
<img src="/images/img_chania2.jpg" alt="Chania" width="460" height="345">
</div>