赞
踩
如需温习上一节内容,请点击下方链接进行跳转:
目录
-
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!-- 支持手机端 -->
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title></title>
- <!-- css -->
- <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
- <!-- js -->
- <script src="js/jquery-3.6.0.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
- <style type="text/css">
- .navbar-collapse{
- flex-grow: 0;
- }
- .form-group{
- width: 280px;
- margin: 0 auto;
- }
- </style>
-
- <script type="text/javascript">
- // 轮播图自动播放
- $(function(){
- $('.carousel').carousel({
- interval: 50
- })
- });
- </script>
-
- </head>
- <body>
-
- <!-- 导航条的设置 -->
- <nav class="navbar navbar-expand-lg navbar-light bg-light">
- <!-- 固定容器 -->
- <div class="container">
- <a class="navbar-brand" href="#">您好!欢迎来到屌丝商城</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
- <div class="navbar-nav">
- <a class="nav-item nav-link active" href="#">首页 <span class="sr-only">(current)</span></a>
- <a class="nav-item nav-link" href="#">注册</a>
- <a class="nav-item nav-link" href="#">登录</a>
- <a class="nav-item nav-link disabled" href="#">我的购物车</a>
- </div>
- </div>
- </div>
- </nav>
- <!-- 利用栅格系统实现搜索区域,左侧列表,轮播图,热门书籍 -->
- <div class="container">
- <!-- 第一行 row -->
- <div class="row" style="margin-top: 10px;">
- <div class="col">
- <div class="jumbotron">
- <!-- 表单组件 -->
- <form action = "" method = "post">
- <div class="form-group">
- <!-- 输入框组 -->
- <div class="input-group mb-3">
- <input type="text" class="form-control" placeholder="书籍名" aria-label="Recipient's username" aria-describedby="button-addon2">
- <div class="input-group-append">
- <button class="btn btn-primary" type="button" id="button-addon2">搜索</button>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
-
- <!-- 第二行 左3右9 -->
- <div class="row">
- <div class="col-md-3 col-12" style="background-color: pink;">
- 左侧列表
- </div>
- <div class="col-md-9 col-12" style="background-color: skyblue;">
- <!-- 右侧区域 -->
- <!-- 第一行 轮播图 -->
- <!-- 轮播图的核心:carousel -->
- <div class="row">
- <div class="col">
- <!-- 轮播图 -->
- <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
- <!-- 小按钮 -->
- <ol class="carousel-indicators">
- <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
- <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
- <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
- </ol>
- <!-- carousel-inner 控制图片区域 -->
- <div class="carousel-inner">
- <div class="carousel-item active">
- <img class="d-block w-100" src="img/banner/lb1.png" alt="First slide">
- </div>
- <div class="carousel-item">
- <img class="d-block w-100" src="img/banner/lb2.jpg" alt="Second slide">
- </div>
- <div class="carousel-item">
- <img class="d-block w-100" src="img/banner/lb3.jpg" alt="Third slide">
- </div>
- </div>
- <!-- 2个标签用来实现左右切换 -->
- <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
- <span class="carousel-control-prev-icon" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
- <span class="carousel-control-next-icon" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
- </div>
- </div>
-
- <!-- 第二行 热门书籍列表 -->
-
-
-
- </div>
-
- </div>
- </div>
-
-
-
- </body>
- </html>
-
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <!-- 支持手机端 -->
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title></title>
- <!-- css -->
- <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
- <!-- js -->
- <script src="js/jquery-3.6.0.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
- <style type="text/css">
- .navbar-collapse{
- flex-grow: 0;
- }
- .form-group{
- width: 280px;
- margin: 0 auto;
- }
- </style>
-
- <script type="text/javascript">
- // 轮播图自动播放
- $(function(){
- $('.carousel').carousel({
- interval: 50
- })
- });
- </script>
-
- </head>
- <body>
-
- <!-- 导航条的设置 -->
- <nav class="navbar navbar-expand-lg navbar-light bg-light">
- <!-- 固定容器 -->
- <div class="container">
- <a class="navbar-brand" href="#">您好!欢迎来到屌丝商城</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id=
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。