编程:仿bootcss.com , 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"> <link rel="stylesheet" href="../dist/css/bootstrap.css"> <title>制作一个bootstrap首页</title> <style> .reddot:after { content: ""; color: #fff; position: absolute; top: 8px; right: 5px; right: 0; padding: 2px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; background: #d9534f; background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat-x: initial; background-repeat-y: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(217, 83, 79); border-radius: 50%; font-size: 12px; line-height: 1; border: 1px solid #d43f3a; } .jumbotron{margin-bottom: 0;padding:90px 0 110px} button{margin-top: 25px;} .ppp{margin-top: 18px;} .wenda{padding-right: 15px;} .weibo{padding-left: 15px;} .suo{text-align: center;} .thumbnail{border-radius: 0;width: 260px;height: 360px;margin-left: 30px} .footer{color: #777; padding: 30px 0; border-top: 1px solid #e5e5e5; margin-top: 70px;} </style> </head> <body> <script src="../jquery.js"></script> <script src="../dist/js/bootstrap.js"></script> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="sr-only">切换导航</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" id="navbar-collapse"> <ul class="nav navbar-nav"> <li><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="" class="reddot">网站实例</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="">关于</a></li> </ul> </div> </div> </div> <div class="jumbotron" style="background-color:#602D4F;"> <div class="container"> <h1 class="text-center" style="font-size: 100px;color: white;font-weight: bolder">Bootstrap</h1> <h2 class="text-center" style="font-size: 30px;color: white">简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。</h2> <button class="btn btn-primary btn-lg center-block" type="button">Bootstrap3中文文档(v3.3.7)</button> <div class="ppp text-center"> <a href="" class="" style="color: #86798E">Bootstrap2中文文档(v2.3.2)</a> </div> </div> </div> <div class="well text-center"> <a href="" style="color: #555555;" class="wenda">Bootstrap问答社区</a> <span style="color: #555555;">|</span> <a href="" style="color: #555555;" class="weibo">新浪微博:@Bootstrap中文网</a> </div> <div class="zhongbiaoti"> <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3 text-center page-header"> <h1 style="font-size: 40px;">Bootstrap相关优质项目推荐</h1> <p>这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的</p> </div> </div> </div> </div> <div class="container"> <div class="row suo"> <div class="col-md-3 thumbnail"> <a href=""><img src="img/1.png" alt="bootstrap"></a> <div class="caption"> <h3><a href="" style="color: #337ab7;text-decoration: none;">优站精选<br><small> Bootstrap 网站实例</small></a></h3> <p>Bootstrap 优站精选频道收集了众多基于 Bootstrap 构建、设计精美的、有创意的网站。</p> </div> </div> <div class="col-md-3 thumbnail"> <a href=""><img src="img/webpack.png" alt="bootstrap"></a> <div class="caption"> <h3><a href="" style="color: #337ab7;text-decoration: none;">Webpack<br><small>是前端资源模块化管理和打包工具</small></a></h3> <p>Webpack 是当下最热门的前端资源模块化管理和打包工具。它可以将许多松散的模块按照依赖和规则打包成符合***环境部署的前端资源。</p> </div> </div> <div class="col-md-3 thumbnail"> <a href=""><img src="img/react.png" alt="bootstrap"></a> <div class="caption"> <h3><a href="" style="color: #337ab7;text-decoration: none;">React<br><small>用于构建用户界面的 JavaScript 框架</small></a></h3> <p>React 起源于 Facebook 的内部项目,是一个用于构建用户界面的 JavaScript 库。</p> </div> </div> <div class="col-md-3 thumbnail"> <a href=""><img src="img/typescript.png" alt="bootstrap"></a> <div class="caption"> <h3><a href="" style="color: #337ab7;text-decoration: none;">TypeScript <br><small>中文手册</small></a></h3> <p>TypeScript 是由微软开源的编程语言。它是 JavaScript 的一个超集,而且本质上向这个语言添加了可选的静态类型和基于类的面向对象编程。</p> </div> </div> </div> </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?1538258916888"> </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> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例