bootstrap 仿实例
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 仿实例的更多相关文章
- 基于Bootstrap仿淘宝分页控件实现
.header { cursor: pointer } p { margin: 3px 6px } th { background: lightblue; width: 20% } table { t ...
- Bootstrap历练实例:轮播(carousel)
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...
- Bootstrap历练实例:响应式导航(带有表单)
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...
- Bootstrap历练实例:响应式导航
<!DOCTYPE html><html lang="zh-cn"><head><meta http-equiv="Conten ...
- Bootstrap 历练实例-轮播(carousel)插件的事件
事件 下表列出了轮播(Carousel)插件中要用到的事件.这些事件可在函数中当钩子使用. 事件 描述 实例 slide.bs.carousel 当调用 slide 实例方法时立即触发该事件. $(' ...
- Bootstrap 历练实例-轮播(carousel)插件方法
方法 下面是一些轮播(Carousel)插件中有用的方法: 方法 描述 实例 .carousel(options) 初始化轮播为可选的 options 对象,并开始循环项目. $('#identifi ...
- Bootstrap 历练实例 - 折叠(Collapse)插件事件
事件 下表列出了折叠(Collapse)插件中要用到的事件.这些事件可在函数中当钩子使用. 事件 描述 实例 show.bs.collapse 在调用 show 方法后触发该事件. $('#ident ...
- Bootstrap 历练实例 - 折叠(Collapse)插件方法
方法 下面是一些折叠(Collapse)插件中有用的方法: 方法 描述 实例 Options:.collapse(options) 激活内容为可折叠元素.接受一个可选的 options 对象. $(' ...
- Bootstrap历练实例:简单的可折叠
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...
随机推荐
- C# 枚举
一.在学习枚举之前,首先来听听枚举的优点. 1.枚举能够使代码更加清晰,它允许使用描述性的名称表示整数值. 2.枚举使代码更易于维护,有助于确保给变量指定合法的.期望的值. 3.枚举使代码更易输入. ...
- 【BZOJ2120】【块状链表】数颜色
Description 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问.墨墨会像你发布如下指令: 1. Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜 ...
- c++ string用法
首先,为了在我们的程序中使用string类型,我们必须包含头文件 .如下: #include //注意这里不是string.h string.h是C字符串头文件 1.声明一个C++字符串 声明一个字 ...
- 翻译-让ng的$http服务与jQuerr.ajax()一样易用
Make AngularJS $http service behave like jQuery.ajax() 让ng的$http服务与jQuerr.ajax()一样易用 作者zeke There is ...
- mysql数据类型——枚举enum(‘F’,'M')
ENUM(“value1”,“value2”,...) 说明:枚举,列值可赋予值列表中的某个成员 允许的属性:除通用属性外无其他属性 缺省值:如果列可为NULL,则为NULL:如果列为NOTNULL, ...
- Python自动化运维之22、JavaScript
一.简介 JavaScript是一门编程语言,浏览器内置了JavaScript语言的解释器,所以在浏览器上按照JavaScript语言的规则编写相应代码之,浏览器可以解释并做出相应的处理.学习了htm ...
- Django db relationship
# coding=utf-8 from django.db import models """ Django数据库关系: 一对一关系:OneToOneField 多对多关 ...
- Python,遍历目录下TXT
import os #获取根目录,递归得到所以txt文件的路径 list_dirs = os.walk(os.curdir) txtfilenames=[] for root, dirs, files ...
- 学习opencv 第六章 习题十三
用傅里叶变换加速卷积,直接上代码,Mat版是Copy他人的. CvMat版 #include "stdafx.h" #include "cv.h" #inclu ...
- vim技巧:折叠快捷键
vim技巧:折叠快捷键 以前用的挺熟的,一段时间不用了,快捷键又忘了,不得不重新再看手册,今天专门整理一下,以后查找起来也比较方便. zc 折叠,只折叠最外层的折叠zC 对所在范围内所有嵌套的折叠点进 ...