Blogger Information
Blog 35
fans 0
comment 0
visits 37283
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
仿bootcss.com首页,使用navbar导航条, 巨幕,缩略图等组件完成(0927)
Ray的博客
Original
877 people have browsed it

1)编程: 仿bootcss.com首页,使用navbar导航条, 巨幕,缩略图等组件完成。

实例

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="lib/dist/css/bootstrap.css">
    <title>bootcss仿站</title>
</head>

<body>

    <div class="navbar navbar-inverse navbar-fixed-top">

  <div class="container">

    <div class="navbar-header">

      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">

        <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 hidden-sm" href="#" >Bootstrap中文网</a>

    </div>

    <div class="navbar-collapse collapse" role="navigation">

      <ul class="nav navbar-nav">

        <li class="hidden-sm hidden-md"><a href="#"  target="_blank" >Bootstrap2中文文档</a></li>

        <li><a href="#" target="_blank" >Bootstrap3中文文档</a></li>

        <li><a href="#" target="_blank" >Bootstrap4中文文档</a></li>

        <li><a href="#" target="_blank" >Less 教程</a></li>

        <li><a href="#" target="_blank" >jQuery API</a></li>

        <li><a class="reddot" href="#" target="_blank" >网站实例</a></li>

      </ul>

      <ul class="nav navbar-nav navbar-right hidden-sm">

        <li><a href="/about/" >关于</a></li>

      </ul>

    </div>

  </div>

</div>


<div class="container-fluid" style="margin: 0">
    <div class="row">
        <div class="col-md-12" style="padding: 0">
            <div class="jumbotron" style="background-color: #602D4F;border-radius: 0;">
                <h1 style="font-size: 100px;color:white;font-weight: bolder" class="text-center">Bootstrap</h1>
                <h2 style="font-size: 30px;color:white;" class="text-center">简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。</h2>
                <button type="button" class="btn btn-primary btn-lg btn-shadow center-block">Bootstrap3中文文档(v3.3.7)</button>
            	<a class="btn btn-link center-block" href="#" target="_blank" role="button" >Bootstrap2中文文档(v2.3.2)</a>

            </div>
        </div>
    </div>
</div>

<div class="bc-social" style="background-color:lightgrey;height: 50px;margin: 0">

    <div class="container">

		<div class="text-center " style="background-color:lightgrey;padding-top: 15px">

			<a href="#" title="Bootstrap问答社区" target="_blank" >

			<i class="fa fa-comments"></i> Bootstrap问答社区

			</a>

			<a>  |  </a>

			<a href="#" title="Bootstrap中文网官方微博" target="_blank" ></i> 新浪微博:@Bootstrap中文网</a>

		</div>
	</div>
</div>


<div class="container-fluid">



    <div class="text-center ">

      <h1>Bootstrap相关优质项目推荐</h1>

      <p>这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的</p>

    </div>

	<hr>

    <div class="row">


        <div class="col-sm-6 col-md-4 col-lg-3 " >

          <div class="thumbnail">

            <a href="#" title="Bootstrap 优站精选" target="_blank" >

              <img class="lazy" src="images/4.png" width="300" height="150" alt="Bootstrap 优站精选">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="Bootstrap 优站精选" target="_blank" >优站精选<br><small> Bootstrap 网站实例</small></a>

              </h3>

              <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="Webpack 是前端资源模块化管理和打包工具" target="_blank" >

              <img class="lazy" src="images/6.png" width="300" height="150"  alt="Webpack 是前端资源模块化管理和打包工具">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="Webpack 是前端资源模块化管理和打包工具" target="_blank" >Webpack<br><small>是前端资源模块化管理和打包工具</small></a>

              </h3>

              <p>Webpack 是当下最热门的前端资源模块化管理和打包工具。它可以将许多松散的模块按照依赖和规则打包成符合***环境部署的前端资源。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="React - 用于构建用户界面的 JavaScript 框架" target="_blank" >

              <img class="lazy" src="images/8.png" width="300" height="150"  alt="React - 用于构建用户界面的 JavaScript 框架">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="React - 用于构建用户界面的 JavaScript 框架" target="_blank" >React<br><small>用于构建用户界面的 JavaScript 框架</small></a>

              </h3>

              <p>React 起源于 Facebook 的内部项目,是一个用于构建用户界面的 JavaScript 库。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="TypeScript 中文手册" target="_blank" onclick="_hmt.push(['_trackEvent', 'tile', 'click', 'typescript'])">

              <img class="lazy" src="images/10.png" width="300" height="150"  alt="TypeScript 中文手册">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="TypeScript 中文手册" target="_blank" >TypeScript <br><small>中文手册</small></a>

              </h3>

              <p>TypeScript 是由微软开源的编程语言。它是 JavaScript 的一个超集,而且本质上向这个语言添加了可选的静态类型和基于类的面向对象编程。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="jQuery API 中文文档/手册" target="_blank" >

              <img class="lazy" src="images/12.png" width="300" height="150"  alt="jQuery API 中文文档/手册">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="jQuery API 中文文档/手册" target="_blank" >jQuery API <br><small>中文手册</small></a>

              </h3>

              <p>根据最新的 jQuery 1.11.x 和 2.1.x 版本翻译的 jQuery API 中文文档/手册。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="w3schools 原版国内镜像" target="_blank" >

              <img class="lazy" src="images/14.png" width="300" height="150"  alt="w3schools 原版国内镜像">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="w3schools 原版国内镜像" target="_blank" >w3schools<br><small>原版国内镜像</small></a>

              </h3>

              <p>w3schools.com 是最受欢迎的前端技术教程网站,但是国内用户一直不能访问,并且国内的中文翻译版本十分陈旧。因此做了个镜像,希望英文好的同学直接去看原版教程吧!</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="Preact - 一个只有 3kB 大小的 React 替代品,拥有与 React 相同的 API、组件和虚拟 DOM。" target="_blank" >

              <img class="lazy" src="images/16.png" width="300" height="150"  alt="Preact - 一个只有 3kB 大小的 React 替代品,拥有与 React 相同的 API、组件和虚拟 DOM。">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="Preact - 一个只有 3kB 大小的 React 替代品,拥有与 React 相同的 API、组件和虚拟 DOM。" target="_blank" >Preact<br><small>React 轻量替代方案。</small></a>

              </h3>

              <p>Preact - 一个只有 3kB 大小的 React 替代品,拥有与 React 相同的 API、组件和虚拟 DOM。</p>

            </div>

          </div>

        </div>

      

        <div class="col-sm-6 col-md-4 col-lg-3 ">

          <div class="thumbnail">

            <a href="#" title="Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。" target="_blank" >

              <img class="lazy" src="images/18.png" width="300" height="150"  alt="Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。">

            </a>

            <div class="text-center">

              <h3>

                  <a href="#" title="Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。" target="_blank" >Node.js<br><small>使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效。</small></a>
			      
			  </h3>
            </div>

          </div>

        </div>
	</div>
</div>

<hr>


<footer class="footer ">

  <div class="container">

    <div class="row footer-top">

      <div class="col-md-6 col-lg-6">

        <h4 title="">

          <img src="images/137.png">

        </h4>

        <p>我们一直致力于为广大开发者提供更多的优质技术文档和辅助开发工具!</p>

      </div>

      <div class="col-md-6  col-lg-5 col-lg-offset-1">

        <div class="row about">

          <div class="col-sm-3">

            <h4>关于</h4>

            <ul class="list-unstyled">

              <li><a href="#" title="">关于我们</a></li>

              <li><a href="#">广告合作</a></li>

              <li><a href="#">友情链接</a></li>

              <li><a href="#">招聘</a></li>

            </ul>

          </div>

          <div class="col-sm-3">

            <h4>联系方式</h4>

            <ul class="list-unstyled">

              <li><a href="#" title="Bootstrap中文网官方微博" target="_blank">新浪微博</a></li>

              <li><a href="#">电子邮件</a></li>

            </ul>

          </div>

          <div class="col-sm-3">

            <h4>旗下网站</h4>

            <ul class="list-unstyled">

              <li><a href="#" target="_blank">Laravel中文网</a></li>

              <li><a href="#" target="_blank">Ghost中国</a></li>

              <li><a href="#" target="_blank">BootCDN</a></li>

              <li><a href="#" target="_blank">Packagist中国镜像</a></li>

              <li><a href="#" target="_blank">燃腾教育</a></li>

            </ul>

          </div>

          <div class="col-sm-3">

            <h4>赞助商</h4>

            <ul class="list-unstyled">

              <li><a href="#" target="_blank">京东云</a></li>

              <li><a href="#" target="_blank">又拍云</a></li>

            </ul>

          </div>

        </div>



      </div>

    </div>

    <hr/>

    <div class="row footer-bottom">

      <ul class="list-inline text-center">

        <li><a href="#" target="_blank">京ICP备xxxxxxx号</a></li><li>京公网安备xxxxxxx</li>

      </ul>

    </div>

  </div>

</footer>


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

运行实例 »

点击 "运行实例" 按钮查看在线实例

运行效果图:

hm0927-1.png

总结:仿站第一次做,勉强做出来了,有许多细节没仿好,细节技术没搞懂。技术还是要磨练,要多练习!

Correction status:qualified

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