Correction status:qualified
Teacher's comments:
利用bootstrap导航条,巨幕,缩略图,仿bootstrap中文网界面。
代码如下:
<!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"> <title>Document</title> <link rel="stylesheet" href="../lib/dist/css/bootstrap.css"> </head> <body> <div class="container" > <div class="row"> <div class="col-md-12" > <nav class="navbar navbar-inverse"> <div class="container-fluid"> <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 href="#" class="navbar-brand">Bootstrap中文网</a> </div> <div class="navbar-collapse collapse" role="navigation"> <ul class="nav navbar-nav"> <li class="hidden-sm hidden-md"><a href="#">Bootstrap2中文文档</a></li> <li><a href="#" >Bootstrap3中文文档</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 hidden-sm"> <li><a href="#">关于</a></li> </ul> </div> </div> </nav> </div> </div> </div> <div class="container-fluid" > <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 center-block">Bootstrap3中文文档(v3.3.7)</button> <br> <p class="text-center" style="font-size:medium"><a href="#" style="color: white" >Bootstrap2中文文档(v2.3.2)</a></p> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default ">了解详情</a> <a href="" class="btn btn-success ">点击访问</a> </p> </div> </div> </div> <div class="row"> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default">了解详情</a> <a href="" class="btn btn-success">点击访问</a> </p> </div> </div> <div class="col-md-3"> <a href="" class="thumbnail"> <img src="https://assets.bootcss.com/www/assets/img/expo.png?1532594948592" alt="1"> </a> <div class="caption"> <h3 class="text-center">优站精选</h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> <p class="text-center"> <a href="" class="btn btn-default ">了解详情</a> <a href="" class="btn btn-success ">点击访问</a> </p> </div> </div> </div> <hr> </div> <footer class="footer "> <div class="container"> <div class="row footer-top"> <div class="col-md-6 col-lg-6"> <h4> <img src="https://assets.bootcss.com/www/assets/img/logo.png?1532594948592"> </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="/about/">关于我们</a></li> <li><a href="/ad/">广告合作</a></li> <li><a href="/links/">友情链接</a></li> <li><a href="/hr/">招聘</a></li> </ul> </div> <div class="col-sm-3"> <h4>联系方式</h4> <ul class="list-unstyled"> <li><a href="http://weibo.com/bootcss" title="Bootstrap中文网官方微博" target="_blank">新浪微博</a></li> <li><a href="mailto:admin@bootcss.com">电子邮件</a></li> </ul> </div> <div class="col-sm-4"> <h4>旗下网站</h4> <ul class="list-unstyled"> <li><a href="http://www.golaravel.com/" target="_blank">Laravel中文网</a></li> <li><a href="http://www.ghostchina.com/" target="_blank">Ghost中国</a></li> <li><a href="http://www.bootcdn.cn/" target="_blank">BootCDN</a></li> <li><a href="https://pkg.phpcomposer.com/" target="_blank">Packagist中国镜像</a></li> <li><a href="https://www.return.net/" target="_blank">燃腾教育</a></li> </ul> </div> <div class="col-sm-2"> <h4>赞助商</h4> <ul class="list-unstyled"> <li><a href="https://www.jdcloud.com/" target="_blank">京东云</a></li> <li><a href="https://www.upyun.com" target="_blank">又拍云</a></li> </ul> </div> </div> </div> </div> <hr> <div class="row footer-bottom"> <ul class="list-inline text-center"> <li><a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备11008151号</a></li><li>京公网安备11010802014853</li> </ul> </div> </div> </footer> <script src="../lib/jquery.js"></script> <script src="../lib/dist/js/bootstrap.js"></script> </body> </html>
点击 "运行实例" 按钮查看在线实例
效果如图: