0
我從Bootstrap頁面複製此傳送帶代碼,並編輯傳送帶的內容。傳送帶控制器不工作
但控制器不工作 即使我移動「div」元素內的控制器。
(但它的工作原理,如果我只用傳送帶一個空白頁測試。)
當我測試我的工作頁面的代碼,他們沒有工作
這裏是我的代碼
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<title>Thai Chiang Mai</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="jquery-3.2.1.min.js">
</head>
<body>
<div class="container">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<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>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="img/food/bonchon.jpg" alt="bonchon" style="width:100%;" class="img-responsive">
</div>
<div class="item">
<img src="img/food/green_curry.jpeg" alt="Curry" style="width:100%;" class="img-responsive">
</div>
<div class="item">
<img src="img/food/kai.jpg" alt="Kai" style="width:100%;" class="img-responsive">
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
你確定你沒有在頁面上的任何其他代碼?看起來像它對我有用。 http://codepen.io/mcoker/pen/BRdpog –
我沒有看到bootstrap.js – ZimSystem