头像

氿歌




离线:1个月前


分享 dfhrfjfh

氿歌
1个月前
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">四季首页</a>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>

    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">春天</a></li>
            <li><a href="#">夏天</a></li>
            <li><a href="#">秋天</a></li>
            <li><a href="#">冬天</a></li>
            <li class="dropdown">
                <ul class="dropdown-menu">
                    <li><a href="#"></a></li>
                    <li class="divider"></li>
                    <li><a href="#"></a></li>
                    <li class="divider"></li>
                    <li><a href="#"></a></li>
                </ul>
            </li>
        </ul>
    </div>
</nav>
<div id="LBbox" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#LBbox" data-slide-to="0" class="active"></li>
        <li data-target="#LBbox" data-slide-to="1"></li>
        <li data-target="#LBbox" data-slide-to="2"></li>
        <li data-target="#LBbox" data-slide-to="3"></li>
    </ol>
    <!-- 轮播内容 -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="img/4/spring.jpg" alt="1 slide">
            <div class="carousel-caption">
                <h1>春天</h1>
            </div>
        </div>
        <div class="item">
            <img src="img/4/summer.jpg" alt="2 slide">
            <div class="carousel-caption">
                <h1>夏天</h1>
            </div>
        </div>
        <div class="item">
            <img src="img/4/autumn.jpg" alt="2 slide">
            <div class="carousel-caption">
                <h1>秋天</h1>
            </div>
        </div>
        <div class="item">
            <img src="img/4/winter.jpg" alt="2 slide">
            <div class="carousel-caption">
                <h1>冬天</h1>
            </div>
        </div>

    </div>
    <!-- 左按钮 -->
    <a href="#LBbox" class="left carousel-control" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">上一页</span>
    </a>
    <!-- 右按钮 -->
    <a href="#LBbox" class="right carousel-control" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">下一页</span>
    </a>
</div>


<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<style>
    .carousel {
        height: 500px;
    }
    .carousel .item {
        height: 500px;
    }
    .carousel .item img {
        width: 100%;
    }
</style>
</body>
</html>


分享 fgfgj

氿歌
1个月前
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">四季首页</a>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>

    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">春天</a></li>
            <li><a href="#">夏天</a></li>
            <li><a href="#">秋天</a></li>
            <li><a href="#">冬天</a></li>
            <li class="dropdown">
                <ul class="dropdown-menu">
                    <li><a href="#"></a></li>
                    <li class="divider"></li>
                    <li><a href="#"></a></li>
                    <li class="divider"></li>
                    <li><a href="#"></a></li>
                </ul>
            </li>
        </ul>
    </div>
</nav>
<style>
    .carousel {
        height: 500px;
    }
    .carousel .item {
        height: 500px;
    }
    .carousel .item img {
        width: 100%;
    }
</style>
</head>

<body>
<div id="LBbox" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#LBbox" data-slide-to="0" class="active"></li>
        <li data-target="#LBbox" data-slide-to="1"></li>
        <li data-target="#LBbox" data-slide-to="2"></li>
        <li data-target="#LBbox" data-slide-to="3"></li>
    </ol>
    <!-- 轮播内容 -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="img/4/spring.jpg" alt="1 slide">
            <div class="carousel-caption">
                <h1>春天</h1>
            </div>
        </div>
        <div class="item">
            <img src="img/4/summer.jpg" alt="2 slide">
            <div class="carousel-caption">
                <h1>夏天</h1>
            </div>
        </div>
        <div class="item">
            <img src="img/4/autumn.jpg" alt="2 slide">
            <div class="carousel-caption">
                <h1>秋天</h1>
            </div>
        </div>
        <div class="item">
        <img src="img/4/winter.jpg" alt="2 slide">
        <div class="carousel-caption">
            <h1>冬天</h1>
        </div>
    </div>

    </div>
    <!-- 左按钮 -->
    <a href="#LBbox" class="left carousel-control" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">上一页</span>
    </a>
    <!-- 右按钮 -->
    <a href="#LBbox" class="right carousel-control" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">下一页</span>
    </a>
</div>


<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</body>
</html>