微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

用bootstrap制作一个简单的页面

<!DOCTYPE html>
<html lang="en">
<head>
  <Meta charset="utf-8">
  <Meta http-equiv="X-UA-Compatible" content="IE=edge">
  <Meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个Meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
  <title>Bootstrap 101 Template</title>
  <!-- Bootstrap -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
  <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
  <!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
  <![endif]-->
  <style>
    #navLogin{
      margin-top: 25px;
    }
  </style>
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-4">
        <img src="../img/logo.png">
      </div>
     <div class="col-md-4">
       <img src="../img/header.png">
     </div>
      <div class="col-md-4">
        <ul class="list-inline" id="navLogin">
          <li><a href="#">登录</a></li>
          <li><a href="#">注册</a></li>
          <li><a href="#">购物车</a></li>
        </ul>
      </div>
    </div>
  </div>
  <nav class="navbar navbar-default">
    <div class="container-fluid navbar-inverse">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">首页</a>
      </div>

      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <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>
        </ul>
        <form class="navbar-form navbar-right">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="Search">
          </div>
          <button type="submit" class="btn btn-default">Submit</button>
        </form>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>
<div>
  <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
      <li data-target="#carousel-example-generic" data-slide-to="1"></li>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listBox">
      <div class="item active">
        <img src="../img/1.jpg" alt="...">
        <div class="carousel-caption">
          ...
        </div>
      </div>
      <div class="item">
        <img src="../img/2.jpg" alt="...">
        <div class="carousel-caption">
          ...
        </div>
      </div>
      <div class="item">
        <img src="../img/3.jpg" alt="...">
        <div class="carousel-caption">
          ...
        </div>
      </div>
    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">PrevIoUs</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
</div>
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-2">
        <h1>热门商品</h1>
      </div>
      <div class="col-md-10">
        <img src="../img/title2.jpg" style="padding-top: 30px">
      </div>
    </div>
  </div>
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-2">
        <img src="../img/big01.jpg" alt="">
      </div>
      <div class="col-md-10">
          <div class="row">
            <div class="col-md-6">
              <img src="../img/middle01.jpg" width="100%" height="236" alt="">
            </div>
            <div class="col-md-2" style="text-align: center">
              <img src="../img/small03.jpg" alt="">
              <h3>冬瓜</h3>
              <h4>¥299.00</h4>
            </div>
            <div class="col-md-2" style="text-align: center">
              <img src="../img/small04.jpg" alt="">
              <h3>冬瓜</h3>
              <h4>¥299.00</h4>
            </div>
            <div class="col-md-2" style="text-align: center">
              <img src="../img/small05.jpg" alt="">
              <h3>冬瓜</h3>
              <h4>¥299.00</h4>
            </div>
          </div>
        <div class="row" style="margin-top: 10px">
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small03.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small04.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small05.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small03.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small04.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small05.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="container-fluid">
    <div class="row">
      <img src="../img/ad.jpg" width="100%" alt="">
    </div>
  </div>
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-2">
        <h1>热门商品</h1>
      </div>
      <div class="col-md-10">
        <img src="../img/title2.jpg" style="padding-top: 30px">
      </div>
    </div>
  </div>
  <div class="container-fluid">
    <div class="row">
      <div class="col-md-2">
        <img src="../img/big01.jpg" alt="">
      </div>
      <div class="col-md-10">
        <div class="row">
          <div class="col-md-6">
            <img src="../img/middle01.jpg" width="100%" height="236" alt="">
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small03.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small04.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small05.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
        </div>
        <div class="row" style="margin-top: 10px">
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small03.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small04.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small05.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small03.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small04.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
          <div class="col-md-2" style="text-align: center">
            <img src="../img/small05.jpg" alt="">
            <h3>冬瓜</h3>
            <h4>¥299.00</h4>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="container-fluid" style="margin-top: 10px">
      <img src="../img/footer.jpg" width="100%"  alt="">
  </div>
  <div class="container-fluid" align="center" style="margin-top: 10px">
    <a href="">关于我们</a>
    <a href="">联系我们</a>
    <a href="">招贤纳士</a>
    <a href="">法律声明</a>
    <a href="">友情链接</a>
    <a href="">支付方式</a>
    <a href="">配送方式</a>
    <a href="">服务声明</a>
    <a href="">广告声明</a><br />
    <div style="margin: 20px 0 100px 0">
      copyright &copy; 2017-2018 指针商城 版权所有
    </div>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</body>
</html>

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐