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 ...
随机推荐
- xcode7 icon图标设置
- 【转】iOS25彩票 幸运转盘
原文 : http://www.it165.net/pro/html/201409/21216.html 最终效果图: 各个view的关系图: 背景圆盘(需穴ky"http://www.it ...
- 文字排版--斜体(font-style)
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content ...
- 微信小程序开发之入门篇(熟悉开发工具)
个人的每一篇博文都谈不上有什么技术含量,只是为了帮助不熟悉微信小程序开发的自己及他人提供一下思路.谢谢,下面开始! PS: 因为本人没有小程序的内测资格,所以所有的开发及Demo都是无AppId的,如 ...
- spring与axis2整合发布webservice
最近在研究整合spring框架和axis2发布webservice服务,由于本人也才学java不久,为了便于以后的查看,在这里记录下发布过程. 所需的工具包,spring.jar和axis2链接地址为 ...
- InvalidArgument=Value of '1' is not valid for 'index'
用ListView实现点击ListView的项删除该项的效果,调用ItemSelectionChanged事件. 代码如下: private void listView1_ItemSelectionC ...
- devicePixelRatio
devicePixelRatio window.devicePixelRatio是设备上物理像素和逻辑像素的比例.公式表示就是:window.devicePixelRatio = 物理像素 / 逻辑像 ...
- YII 小部件 解决多选按钮和单选按钮不在同一水平上 'separator'=>' '
主要是添加separator属性(这里)$hoddy,$sex在控制器里面定义的数组,然后render传过来的 <td> <?php echo $form-> ...
- BAE 环境下配置 struts2 + spring + hibernate(SSH)(二)struts2
在myeclipse下开发的 应用但是 放到BAE下就出现了问题,虽然显示发布成功,但是访问的时候就会出现503 Service Unavailable 错误.通过调整 web.xml 发现纯Serv ...
- bzoj2096: [Poi2010]Pilots
Description Tz又耍畸形了!!他要当飞行员,他拿到了一个飞行员测试难度序列,他设定了一个难度差的最大值,在序列中他想找到一个最长的子串,任意两个难度差不会超过他设定的最大值.耍畸形一个人是 ...