bootstrap实现一个网页

html文件

 <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Ghost</title>
<link type="text/css" rel="stylesheet" href="bootstrap.min.css"></link>
<link type="text/css" rel="stylesheet" href="mystyle.css"></link>
</head>
<body class="home-template">
<header class="main-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<a class="branding" href="http://www.baidu.com">
<img src="http://static.ghostchina.com/image/b/46/4f5566c1f7bc28b3f7ac1fada8abe.png">
<h2 class="text-hide">
bootstrap实例
</h2>
</a>
</div>
</div>
</div>
</header>
<nav class="main-navigation">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="navbar-header">
<span class="nav-toggle-button collapse" data-target="#main-menu">
<span class="sr-only">Toggle Navigation</span>
<i class="fa fa-bars"></i>
</span>
</div>
<div class="collapse navbar-collapse" id="main-menu">
<ul class="menu">
<li class="nav-current" role="presentation">
<a href="#">首页</a>
</li>
<li role="presentation">
<a href="#">论坛</a>
</li>
<li role="presentation">
<a href="#">快捷手册</a>
</li>
<li role="presentation">
<a href="#">中文文档</a>
</li>
<li role="presentation">
<a href="#">下载</a>
</li>
<li role="presentation">
<a href="#">关于</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<section class="content-wrap">
<div class="container">
<div class="row">
<main class="col-md-8 main-content" >
<article class="post tag-abuot-ghost tag-ghost-in-depth tag-zhu-shou-han-shu">
<div class="post-head">
<h1 class="post-title">
<a href="#">禁止 'ghost-foot' 助手输出</a>
</h1>
<div class="post-meta">
<span class="author">作者<a href="#">王赛</a></span>
<time class="date" datetime="2015-10-10">2015年10月10日</time>
</div>
</div>
<div class="post-content">
<p>
在移动设备浏览器上,通过为视口(viewport)设置 meta 属性为 user-scalable=no 可以禁用其缩放(zooming)功能。这样禁用缩放功能后,用户只能滚动屏幕,就能让你的网站看上去更像原生应用的感觉。注意,这种方式我们并不推荐所有网站使用,还是要看你自己的情况而定!
</p>
</div>
<div class="post-permalink">
<a href="#" class="btn btn-default">阅读全文</a>
</div>
<div class="footer clearfix">
<hr>
<div class="pull-left tag-list">
<i class="fa fa-folder-open-o"></i>
<a href="#" >Ghost</a>
<a href="#">深度玩转Ghost</a>
<a href="#">助手函数</a>
</div>
</div>
</article> <article class="post tag-abuot-ghost tag-ghost-in-depth tag-zhu-shou-han-shu">
<div class="post-head">
<h1 class="post-title">
<a href="#">禁止 'ghost-foot'助手输出</a>
</h1>
<div class="post-meta">
<span class="author">作者<a href="#">王赛</a></span>
<time class="date" datetime="2015-10-10">2015年10月10日</time>
</div>
</div>
<div class="post-content">
<p>
在移动设备浏览器上,通过为视口(viewport)设置 meta 属性为 user-scalable=no 可以禁用其缩放(zooming)功能。这样禁用缩放功能后,用户只能滚动屏幕,就能让你的网站看上去更像原生应用的感觉。注意,这种方式我们并不推荐所有网站使用,还是要看你自己的情况而定!
</p>
</div>
<div class="post-permalink">
<a href="#" class="btn btn-default">阅读全文</a>
</div>
<div class="footer clearfix">
<hr>
<div class="pull-left tag-list">
<i class="fa fa-folder-open-o"></i>
<a href="#" >Ghost</a>
<a href="#">深度玩转Ghost</a>
<a href="#">助手函数</a> </div>
</div>
</article> <article class="post tag-abuot-ghost tag-ghost-in-depth tag-zhu-shou-han-shu">
<div class="post-head">
<h1 class="post-title">
<a href="#">禁止 'ghost-foot'助手输出</a>
</h1>
<div class="post-meta">
<span class="author">作者<a href="#">王赛</a></span>
<time class="date" datetime="2015-10-10">2015年10月10日</time>
</div>
</div>
<div class="post-content">
<p>
在移动设备浏览器上,通过为视口(viewport)设置 meta 属性为 user-scalable=no 可以禁用其缩放(zooming)功能。这样禁用缩放功能后,用户只能滚动屏幕,就能让你的网站看上去更像原生应用的感觉。注意,这种方式我们并不推荐所有网站使用,还是要看你自己的情况而定!
</p>
</div>
<div class="post-permalink">
<a href="#" class="btn btn-default">阅读全文</a>
</div>
<div class="footer clearfix">
<hr>
<div class="pull-left tag-list">
<i class="fa fa-folder-open-o"></i>
<a href="#" >Ghost</a>
<a href="#">深度玩转Ghost</a>
<a href="#">助手函数</a> </div>
</div>
</article>
</main>
<aside class="col-md-4 side-bar">
<div class="widget">
<h4 class="title">社区</h4>
<div class="content community">
<p>QQ群:</p>
<p>
<a href="#">问答社区</a>
</p>
<p>
<a href="#">官网微博</a>
</p>
</div>
</div>
<div class="widget">
<h4>下载 Ghost</h4>
<div class="content download">
<a href="#" class="btn btn-default btn-block">Ghost 中文版(5.0.)</a>
</div>
</div>
<div class="widget">
<h4 class="title">标签云</h4>
<div class="content tag-cloud">
<a href="#">Ghost</a>
<a href="#">新版本发布</a>
<a href="#">主题</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">新版本发布</a>
<a href="#">主题</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
<a href="#">Ghost</a>
</div>
</div>
</aside>
</div>
</div>
</section> <footer class="main-footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="widget"> <div class="title">
<h4>最新文章</h4>
</div>
<div class="content recent-post">
<div class="recent-single-post">
<a href="#" class="post-title">禁止ghost_foot</a>
<div class="date">March </div>
</div>
<div class="recent-single-post">
<a href="#" class="post-title">禁止ghost_foot</a>
<div class="date">March </div>
</div>
<div class="recent-single-post">
<a href="#" class="post-title">禁止ghost_foot</a>
<div class="date">March </div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="widget">
<h4 class="title">标签云</h4>
<div class="content tag-cloud">
<a href="#">Ghost</a>
<a href="">新版本发布</a>
<a href="">主题</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">新版本发布</a>
<a href="">主题</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
<a href="">Ghost</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="widget">
<h4 class="title">合作伙伴</h4>
<div class="content tag-cloud frend-links">
<a href="#">bootstrap中文网</a>
<a href="#">bootstrap中文网</a>
<a href="#">bootstrap中文网</a>
<a href="#">bootstrap中文网</a>
<a href="#">bootstrap中文网</a>
<a href="#">bootstrap中文网</a>
</div>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>

css文件

 html, body {
color: #;
line-height: 1.75;
background: #ebebeb;
} .main-header {
text-align: center;
padding: 42px ;
background: #ffffff;
} .main-header .branding {
font-size: .5em;
color: #;
} a {
color: #e67e22;
outline: none;
text-decoration: none;
} .main-header .branding img {
max-width: %;
} a:active, a:focus, a img {
outline: none;
} .main-navigation {
text-align: center;
background: #ffffff;
border-top: 1px;
border-bottom: 3px solid #e1e1e1;
margin-bottom:35px;
} .main-navigation .menu {
padding: ;
margin: ;
} .main-navigation .menu li.nav-current {
border-bottom: 3px solid #e67e22;
margin-bottom: -2px;
} .main-navigation .menu li {
list-style: none;
display : inline-block;
position: relative;
} .main-navigation .menu li a {
color: #;
line-height: 4em;
display: block;
padding: 21px;
} .post {
padding: 35px;
background: #ffffff;
margin-bottom: 35px;
position: relative;
overflow: hidden;
} .post .post-head {
text-align: center;
} .post .post-head .post-title {
margin: ;
font-size: .5em;
line-height: 1em;
} .post .post-head .post-title a {
color: #;
} .post .post-head .post-meta {
color: #;
margin: 14px 0px;
} .post-content {
font: 18px/1.62 "Glyphicons Halflings";
color: #;
} .post-content p {
margin-top: ;
margin-bottom: .16em;
} .btn-default {
border: 1px solid #e67e22;
background: #e67e22;
color: #ffffff;
transition: all .2s ease-in-out; -webkit-transition:all .2s ease-in-out;
} .btn {
padding: 7px 14px;
border-radius: 6px;
} .post .post-footer {
margin-top: 30px;
border-top: 1px solid #ebebeb;
padding: 21px ;
} .post .post-footer .tag-list {
color: #;
line-height: 28px;
} .side-bar .widget {
background: #ffffff;
padding: 21px 30px;
} .widget {
margin-bottom: 35px;
} .widget .title {
margin-top: ;
padding-bottom: 7px;
border-bottom: 1px solid #ebebeb;
margin-bottom: 21px;
position: relative;
} .widget .tag-cloud a {
border: 1px solid #ebebeb;
padding: 2px 7px;
color: #;
line-height: .5em;
display: inline-block;
} .main-footer {
background: #;
padding: 35px ;
color: #;
} .main-footer .widget {
padding: 0px 30px;
} .widget {
margin-bottom: 35px;
} .main-footer .widget .title {
color: #ffffff;
border-bottom: 1px #;
} .widget .title {
margin-top: ;
padding-bottom: 7px;
border-bottom: 1px solid #ebebeb;
margin-bottom: 21px;
position: relative;
} .main-footer .widget .recent-post .recent-single-post {
border-bottom: 1px dashed #;
} .main-footer .recent-post .recent-single-post {
border-bottom: 1px dashed #;
padding-bottom: 14px;
margin-bottom: 14px;
}

bootstrap 仿实例的更多相关文章

  1. 基于Bootstrap仿淘宝分页控件实现

    .header { cursor: pointer } p { margin: 3px 6px } th { background: lightblue; width: 20% } table { t ...

  2. Bootstrap历练实例:轮播(carousel)

    <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...

  3. Bootstrap历练实例:响应式导航(带有表单)

    <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...

  4. Bootstrap历练实例:响应式导航

    <!DOCTYPE html><html lang="zh-cn"><head><meta http-equiv="Conten ...

  5. Bootstrap 历练实例-轮播(carousel)插件的事件

    事件 下表列出了轮播(Carousel)插件中要用到的事件.这些事件可在函数中当钩子使用. 事件 描述 实例 slide.bs.carousel 当调用 slide 实例方法时立即触发该事件. $(' ...

  6. Bootstrap 历练实例-轮播(carousel)插件方法

    方法 下面是一些轮播(Carousel)插件中有用的方法: 方法 描述 实例 .carousel(options) 初始化轮播为可选的 options 对象,并开始循环项目. $('#identifi ...

  7. Bootstrap 历练实例 - 折叠(Collapse)插件事件

    事件 下表列出了折叠(Collapse)插件中要用到的事件.这些事件可在函数中当钩子使用. 事件 描述 实例 show.bs.collapse 在调用 show 方法后触发该事件. $('#ident ...

  8. Bootstrap 历练实例 - 折叠(Collapse)插件方法

    方法 下面是一些折叠(Collapse)插件中有用的方法: 方法 描述 实例 Options:.collapse(options) 激活内容为可折叠元素.接受一个可选的 options 对象. $(' ...

  9. Bootstrap历练实例:简单的可折叠

    <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...

随机推荐

  1. iOS菜鸟之AFN的二次封装

    我用一个单例类将一些常用的网络请求进行了二次封装,主要包括post请求 get请求  图片文件上传下载  视频的断点续传等功能. 首先大家先去github上下载AFN,将文件夹内的AFNetworki ...

  2. 显示scrollbar

    修改CSS overflow的值 overflow: 参考MDN 例子: overflow: auto or scroll

  3. cas sso单点登录系列8_抛弃Https让Cas以Http协议提供单点登录服务

    转:http://blog.csdn.net/ycyk_168/article/details/18668951 本文环境: 1.apache-tomcat-7.0.50-windows-x86 2. ...

  4. 未能解析目标框架“.NETFramework,Version=v4.0”的 mscorlib 错误的解决办法

    查看项目属性,发现该项目的目标框架是.NET Framework 4 Client Profile ,而被引用的程序集的目标框架是.NET Framework 4,将该项目的目标框架修改成.NET F ...

  5. coffee 编译时, 用本地环境

    export PATH="./node_modules/.bin:$PATH" 原文: How to use package installed locally in node_m ...

  6. nuc970连接jlink进行单步调试的设置

    在 USB mode 下, 先跟 NuWriter 接上, 然后用以下的设定. 按 Keil 的 debug (不是 download to flash)就可以接上了.

  7. Java线程运行轨迹-代码追踪与定位

    今天在写程序时,想到一个问题,当我的程序出异常的时候,控制台输出信息中,明确指出了出现异常的位置,并详细列举了函数的调用层次关系,它是怎么做到的. 竟然想到了这个问题,就去查看了源代码,不过没点几下, ...

  8. SQL语句 常用条件判断

    条件判断写法: 对每天记录执行操作时,判断所限制的条件-----> 操作符:                     =      <>(不匹配检查)       !=     &l ...

  9. Python自动化运维之22、JavaScript

    一.简介 JavaScript是一门编程语言,浏览器内置了JavaScript语言的解释器,所以在浏览器上按照JavaScript语言的规则编写相应代码之,浏览器可以解释并做出相应的处理.学习了htm ...

  10. A题 - A + B Problem

      Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u   Description Cal ...