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. C#堆栈原理(我有两个例子测试你到底会不会)

    背景 上次写了一篇文章关于try finnally的一些疑问(被我用windows live覆盖了,草),后来经过大神们解释,我明白了在我理解了try.finnally运行原理后,还欠缺的就是关于值类 ...

  2. SGU 168.Matrix

    时间限制:0.5s 空间限制:15M 题意: 给出一个N*M的矩阵A,计算矩阵B,满足B[i][j]=min{ A[x][y]:(y>=j) and ( x>=i+j-y )} Solut ...

  3. Codeforces Round #286 (Div. 1) 解题报告

    A.Mr. Kitayuta, the Treasure Hunter 很显然的一个DP,30000的数据导致使用map+set会超时.题解给了一个非常实用的做法,由于每个点有不超过250种状态,并且 ...

  4. 【实习记】2014-08-10(上)代码跟踪git的想法+归并排序的debug过程

        (冒泡,选择,插入,希尔,快速,归并,堆排)周末加班学习C++,打算用C++写七大经典排序代码.发现3个月前自己写的七大经典排序代码(C Language)突然运行出错. Makefile内容 ...

  5. you need to be root to perform this command linux

    获得root权限如何获得:打开终端,输入su回车 然后输入密码回车就行了

  6. PHP要注意的14个问题

    1.页面之间无法传递变量 get,post,session 在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使 用$_GET['foo'],$_POST['foo'],$ ...

  7. Android中的Selector的用法

    转自: Android中的Selector主要是用来改变ListView和Button控件的默认背景.其使用方法可以按一下步骤来设计: (以在mylist_view.xml为例) 1.创建mylist ...

  8. bzoj1038: [ZJOI2008]瞭望塔

    Description 致力于建设全国示范和谐小村庄的H村村长dadzhi,决定在村中建立一个瞭望塔,以此加强村中的治安.我们将H村抽象为一维的轮廓.如下图所示 我们可以用一条山的上方轮廓折线(x1, ...

  9. 转:PHP开发者应了解的24个库

    原文来自于:http://blog.jobbole.com/54201/ 作为一个PHP开发者,现在是一个令人激动的时刻.每天有许许多多有用的库分发出来,在Github上很容易发现和使用这些库.下面是 ...

  10. windows 下安装nodejs及其配置环境

    第一步:下载安装文件下载nodejs,官网:http://nodejs.org/download/,我这里下载的是node-v0.10.28-x86.msi,如下图: 第二步:安装nodejs下载完成 ...