这篇文章主要介绍bootstrap轮播模板怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
具体内容如下
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" 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="https://cache.yisu.com/upload/information/20200622/114/59171.jpg" alt="1 slide"> <div class="container"> <div class="carousel-caption"> 文本区域 </div> </div> </div> <div class="item"> <img src="2F1-130516091446402.jpg" alt="2 slide"> <div class="container"> <div class="carousel-caption"> 文本区域 </div> </div> </div> <div class="item"> <img src="-110910214P238.jpg" alt="3 slide"> <div class="container"> <div class="carousel-caption"> 文本区域 </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>
以上是“bootstrap轮播模板怎么用”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。