2
林幾乎是一個新手,編碼和香港專業教育學院一直在努力做一個滑塊上引導了whle但它不是真正的工作,因爲它變得像一個背景是什麼引導轉盤不工作,而是變成背景圖像
繼承人我的HTML
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class= "container">
<div class="navbar-header">
<a class="navbar-brand" href"#">
<img src="img/logowine.png" alt="winelogo">
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mynavbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="mynavbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href="#">Home</a>
</li>
<li>
<a href="#about">About </a>
</li>
<li>
<a href="#product">Products</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</div>
<div id="myCarousel" class="carousel slide" data-ride="carousel" >
<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>
<div class="carousel-inner" role="listbox">
<div clas="item active">
<img src="img/carousel1.jpg" alt="portdicksonrj" class="img-responsive">
</div>
<div clas="item">
<img src="img/carousel2.jpg" alt="portdicksonrjice" class="img-responsive">
</div>
<div clas="item">
<img src="img/carousel3.jpg" alt="portdicksonrjlemon" class="img-responsive">
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$("#carousel").carousel();
</script>
</body>
你有bootsrap CSS就可以了聯繫? –
參見: http://www.w3schools.com/bootstrap/bootstrap_ref_js_carousel.asp – 000