Blogger Information
Blog 34
fans 1
comment 0
visits 23244
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
仿写Bootstrap中文网-2018-09-27
theYon的博客
Original
725 people have browsed it

仿写Bootstrap中文网

技术栈:

Bootstrap

代码:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>首页</title>
  <link rel="stylesheet" href="../dist/css/bootstrap.min.css">
  <style>
    .masthead{
      padding: 130px 0 110px;
      background: #321A44;
      color: #fff;
      margin-bottom: 0;
    }
    .footer-links-b,
    .bc-social-buttons{
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .bc-social-buttons:after{
      display: block;
      content: " ";
      clear: both;
    }
    .footer-links-b li,
    .bc-social-buttons li,
    .bc-social-buttons li a{
      display: inline-block;
      color: #000;   
    }
    .footer-links-b > li + li::before,
    .bc-social-buttons > li + li::before{
      padding: 0 10px;
      color: #ccc;
      content: "|";
    }
    .bc-social{
      background: #F5F5F5;
      text-align: center;
      padding: 15px 0;
    }
    .lists{
      background: #fff;
      border-bottom: 1px solid #ccc;
    }
    .footer{
      color: #777;
      padding: 30px 0;
      border-top: 1px solid #e5e5e5;
      margin-top: 70px;
    }
    .footer-links{
      list-style: none;
      margin: 0;
      padding: 0;
    }
    /* .border-bottom{
      margin: 50px 0 0 0;
      border-top: 1px solid #ccc;
    } */
  </style>
</head>
<body>
  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <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="#">Bootstrap中文网</a>
      </div>
      <div class="collapse navbar-collapse">
        <ul class="nav navbar-nav">
          <li><a href="#">Bootstrap2中文文档</a></li>
          <li class="active"><a href="#">Bootstrap3中文文档<span class="sr-only"></span></a></li>
          <li><a href="#">Bootstrap4中文文档</a></li>
          <li><a href="#">Less 教程</a></li>
          <li><a href="#">jQuery API</a></li>
          <li><a href="#">网站实例</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#">关于</a></li>
        </ul>
      </div>
    </div>
  </div>

  <div class="jumbotron masthead">
    <div class="container text-center">
      <h1>Bootstrap</h1>
      <h2>简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。</h2>
      <p><a class="btn btn-lg btn-primary btn-shadow" href="#" role="button">Bootstrap3中文文档(v3.3.7)</a></p>
      <h5><a href="javascript:;">Bootstrap2中文文档(v2.3.2)</a></h5>
    </div>
  </div>

  <div class="bc-social">
    <div class="container">
      <ul class="bc-social-buttons">
        <li class="social-forum">
          <a href="javascript:;"> Bootstrap问答社区 </a>
        </li>
        <li class="social-forum">
          <a href="javascript:;"> 新浪微博:@Bootstrap中文网 </a>
        </li>
      </ul>
    </div>
  </div>

  <div class="container">
    <div class="jumbotron lists text-center">
      <h2>Bootstrap相关优质项目推荐</h2>
      <h5>这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的</h5>
    </div>
    <div class="row">

      <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
          <img src="./item.jpg">
          <div class="caption">
            <h3>Thumbnail label</h3>
            <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
          <img src="./item.jpg">
          <div class="caption">
            <h3>Thumbnail label</h3>
            <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
          <img src="./item.jpg">
          <div class="caption">
            <h3>Thumbnail label</h3>
            <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          </div>
        </div>
      </div>

      <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
          <img src="./item.jpg">
          <div class="caption">
            <h3>Thumbnail label</h3>
            <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          </div>
        </div>
      </div>
    

      <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
          <img src="./item.jpg">
          <div class="caption">
            <h3>Thumbnail label</h3>
            <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          </div>
        </div>
      </div>

    </div>

  </div>

  <div class="footer">
    <div class="container">
      <div class="row">
        <div class="col-md-6 col-lg-6">
          <h4><img src="https://assets.bootcss.com/www/assets/img/logo.png?1538258916888"></h4>
          <p>我们一直致力于为广大开发者提供更多的优质技术文档和辅助开发工具!</p>
        </div>
        <div class="col-md-6  col-lg-5 col-lg-offset-1">
            <div class="row">
              <div class="col-sm-3">
                <h4>关于</h4>
                <ul class="footer-links">
                  <li>xxx</li>
                  <li>xxx</li>
                  <li>xxx</li>
                </ul>
              </div>
              <div class="col-sm-3">
                <h4>关于</h4>
                <ul class="footer-links">
                  <li>xxx</li>
                  <li>xxx</li>
                  <li>xxx</li>
                </ul>
              </div>
              <div class="col-sm-3">
                <h4>关于</h4>
                <ul class="footer-links">
                  <li>xxx</li>
                  <li>xxx</li>
                  <li>xxx</li>
                </ul>
              </div>
              <div class="col-sm-3">
                <h4>关于</h4>
                <ul class="footer-links">
                  <li>xxx</li>
                  <li>xxx</li>
                  <li>xxx</li>
                </ul>
              </div>
            </div>
        </div>
      </div>
      <hr>
      <div class="row text-center border-bottom">
        <ul class="footer-links-b">
          <li>京ICP备xxxxxxx号</li>
          <li>京公网安备xxxxxxxxx</li>
        </ul>
      </div>
    </div>
  </div>


</body>
<script src="../dist/js/jquery.min.js"></script>
<script src="../dist/js/bootstrap.min.js"></script>
</html>

运行结果

TIM截图20181007213618.png

TIM截图20181007213631.png

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post