码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap:图片轮播

时间:2018-09-13 13:55:06      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:script   data-   img   src   cti   轮播   rap   ogg   str   

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1, user-scalable=no">
<title>图片轮播</title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body style="padding-left: 350px; padding-top: 150px">

    <div class="carousel slide" data-toggle="carousel" id="page" style="width: 500px;" data-ride="carousel" data-interval="3000">
        <div class="carousel-inner">
            <div class="item active"><img src="https://i.loli.net/2018/09/13/5b99ce0aad0d5.jpg" style="width: 500px; height: 282px;"></div>
            <div class="item"><img src="https://i.loli.net/2018/09/13/5b99e2dbdcfee.jpg" style="width: 500px;height: 282px;"></div>
            <div class="item"><img src="https://i.loli.net/2018/09/13/5b99e30fc8278.jpg" style="width: 500px;height: 282px;"></div>
            <div class="item"><img src="https://i.loli.net/2018/09/13/5b99e32cc27e2.jpg" style="width: 500px;height: 282px;"></div>
        </div>
        <a href="#page" class="carousel-control left" data-slide="prev"></a>
        <a href="#page" class="carousel-control right" data-slide="next"></a>
        <ul class="carousel-indicators">
            <li data-target="#page" data-slide-to="0" class="active"></li>
            <li data-target="#page" data-slide-to="1"></li>
            <li data-target="#page" data-slide-to="2"></li>
            <li data-target="#page" data-slide-to="3"></li>
        </ul>
    </div>
</body>
</html>

示例图:

技术分享图片

bootstrap:图片轮播

标签:script   data-   img   src   cti   轮播   rap   ogg   str   

原文地址:https://www.cnblogs.com/hacker-lsr/p/9639830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!