本文實(shí)例為大家分享了bootstrap輪播模板展示的具體代碼,供大家參考,具體內(nèi)容如下
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <link rel="stylesheet" rel="external nofollow" > <style type="text/css"> .carousel { height: 500px; } .carousel .item { height: 500px; background-color: #000; } .carousel .item img { width: 100%; } .carousel-caption { z-index: 10; } </style> </head> <body> <!-- 輪播 --> <div id="ad-carousel" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-slide-to="0" class="active"></li> <li data-slide-to="1"></li> <li data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="http://img.glzy8.com/upfiles/www/ppt/jpg/24675.jpg" alt="1 slide"> <div class="container"> <div class="carousel-caption"> 文本區(qū)域 </div> </div> </div> <div class="item"> <img src="2F1-130516091446402.jpg" alt="2 slide"> <div class="container"> <div class="carousel-caption"> 文本區(qū)域 </div> </div> </div> <div class="item"> <img src="-110910214P238.jpg" alt="3 slide"> <div class="container"> <div class="carousel-caption"> 文本區(qū)域 </div> </div> </div> </div> <a class="left carousel-control" href="#ad-carousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#ad-carousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> </div> <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" ></script> </body> </html>
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com