直播平臺搭建原始碼,bootstrap實現圖片輪播效果

zhibo系統開發發表於2023-05-03

直播平臺搭建原始碼,bootstrap實現圖片輪播效果

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>設計輪播圖效果</title>
    <meta name="viewport" content="width=device-width,initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="bootstrap-4.5.3-dist/css/bootstrap.css">
    <script src="jquery-3.5.1.slim.js"></script>
    <script src="bootstrap-4.5.3-dist/js/bootstrap.min.js"></script>
</head>
<body>
<div id="Carousel" class="carousel slide" data-ride="carousel">
    <!--標識圖示-->
    <ol class="carousel-indicators">
        <li data-target="#Carousel" data-slide-to="0" class="active"></li>
        <li data-target="#Carousel" data-slide-to="1"></li>
        <li data-target="#Carousel" data-slide-to="2"></li>
    </ol>
    <!--幻燈片-->
    <div class="carousel-inner">
        <div class="carousel-item active">
            <img src="images/1.jpg" class="d-block w-100" alt="">
            <div class="carousel-caption">
                <h5>設計輪播圖效果</h5>
                <p>說明文字</p>
            </div>
        </div>
        <div class="carousel-item">
            <img src="images/2.jpg" class="d-block w-100" alt="">
            <div class="carousel-caption">
                <h5>設計輪播圖效果</h5>
                <p>說明文字</p>
            </div>
        </div>
        <div class="carousel-item">
            <img src="images/3.jpg" class="d-block w-100" alt="">
            <div class="carousel-caption">
                <h5>設計輪播圖效果</h5>
                <p>說明文字</p>
            </div>
        </div>
    </div>
    <!--控制按鈕-->
    <a class="carousel-control-prev" href="#Carousel" data-slide="prev">
        <span class="carousel-control-prev-icon"></span>
    </a>
    <a class="carousel-control-next" href="#Carousel" data-slide="next">
        <span class="carousel-control-next-icon"></span>
    </a>
</div>
</body>
</html>
</body>
</html>

以上就是 直播平臺搭建原始碼,bootstrap實現圖片輪播效果,更多內容歡迎關注之後的文章


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69978258/viewspace-2949703/,如需轉載,請註明出處,否則將追究法律責任。

相關文章