抽屉header
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title</title>
<style>
*{
margin:0;
padding: 0;
font-size: 12px;
}
a{
text-decoration: none;
}
a.i{
width: 30px;
height: 29px;
/*background-color: white;*/
display: inline-block;
float: left;
/*margin-top: 2px;*/
}
.ico{
width: 11px;
height: 12px; display: inline-block;
margin-left: 11px;
margin-top: 9px;
background-image: url("http://dig.chouti.com/images/icon.png");
background-repeat: no-repeat;
background-position: 0 -197px;
}
.header{
width: 100%;
height: 44px;
background-color: #2459a2;
position: fixed;
}
.header-content{
width: 1026px;
margin: 0 auto;
/*background-color: grey;*/
height: 44px;;
line-height: 44px;
}
.logo{
width: 121px;
height: 23px;
background: url(http://dig.chouti.com/images/logo.png) no-repeat 0 0;
float: left;
margin-top: 11px;
}
.menu{
float: left;
margin-left: 20px;
}
.menu a{
color: #c0cddf;
padding: 0 13px 0 16px;
display: inline-block;
margin-left: -3px;
}
.menu .menu_0{
background: #204982;
color: white;
}
.menu .menu_1:hover{
color: white;
background-color:#3266ad ;
}
.search{
float: right;
margin-top: 6px;
display: block;
background-color: white;
} .search_text{
color: #333;
padding: 2px 2px 2px 5px;
height: 25px;
width: 91px;
float: left;
}
.content_right a:hover{
background:#3266ad ;
}
.content_right a{
color: white;
float: right;
display: inline-block;
/*margin-left: 20px;*/
padding:0 20px;
}
.
</style>
</head>
<body> <div class="header">
<div class="header-content">
<a href="" class="logo"></a>
<div class="menu">
<a href="" class="menu_0">全部</a>
<a href="" class="menu_1">42区</a>
<a href="" class="menu_1">段子</a>
<a href="" class="menu_1">图片</a>
<a href="" class="menu_1">挨踢1024</a>
<a href="" class="menu_1">你问我答</a>
</div>
<div class="search">
<form action="" method="post" name="search_form">
<input type="text" class="search_text" name="search_text" >
<a href="" class="i">
<span class="ico"></span>
</a>
</form>
</div>
<div class="content_right">
<a href="" class="register">登录</a>
<a href="" class="login">注册</a>
</div>
</div>
</div> </body>
</html>
抽屉header的更多相关文章
- iOS开发之抽屉效果实现
说道抽屉效果在iOS中比较有名的第三方类库就是PPRevealSideViewController.一说到第三方类库就自然而然的想到我们的CocoaPods,今天的博客中用CocoaPods引入PPR ...
- tornado web高级开发项目之抽屉官网的页面登陆验证、form验证、点赞、评论、文章分页处理、发送邮箱验证码、登陆验证码、注册、发布文章、上传图片
本博文将一步步带领你实现抽屉官网的各种功能:包括登陆.注册.发送邮箱验证码.登陆验证码.页面登陆验证.发布文章.上传图片.form验证.点赞.评论.文章分页处理以及基于tornado的后端和ajax的 ...
- Android DrawerLayout 抽屉
Android DrawerLayout 抽屉 DrawerLayout 在supportV4 Lib在.类似的开源slidemenu如,DrawerLayout父类ViewGroup,自定义组件基本 ...
- CSS快速入门-前端布局1(抽屉)
一.效果图 前面对CSS基础知识有了一定的了解,是时候开始实战了!以下我对抽屉(https://dig.chouti.com/)主页进行模拟布局. 官方网站效果图: 模拟网站图: 二.实现步骤 1.整 ...
- 使用ViewDragHelper打造属于自己的DragLayout(抽屉开关 )
使用ViewDragHelper打造属于自己的DragLayout(抽屉开关 ) DrawLayout这个自己定义的空间非经常见.qq,网易新闻.知乎等等,都有这样的效果,那这样的效果是如何实现的呢? ...
- day19 Models补充+缓存+信号+序列化+分析抽屉页面
参考链接: http://www.cnblogs.com/wupeiqi/articles/5237704.html http://www.cnblogs.com/wupeiqi/articles/5 ...
- 本博文将一步步带领你实现抽屉官网的各种功能:包括登陆、注册、发送邮箱验证码、登陆验证码、页面登陆验证、发布文章、上传图片、form验证、点赞、评论、文章分页处理以及基于tronado的后端和ajax的前端数据处理。
本博文将一步步带领你实现抽屉官网的各种功能:包括登陆.注册.发送邮箱验证码.登陆验证码.页面登陆验证.发布文章.上传图片.form验证.点赞.评论.文章分页处理以及基于tronado的后端和ajax的 ...
- Flutter学习笔记(18)--Drawer抽屉组件
如需转载,请注明出处:Flutter学习笔记(18)--Drawer抽屉组件 Drawer(抽屉组件)可以实现类似抽屉拉出和推入的效果,可以从侧边栏拉出导航面板.通常Drawer是和ListView组 ...
- RestTemplate发送请求并携带header信息
1.使用restTemplate的postForObject方法 注:目前没有发现发送携带header信息的getForObject方法. HttpHeaders headers = new Http ...
随机推荐
- Space is not allowed after parameter prefix ':'
问题:在hibernate中执行mysql语句,如果mysql语句中含有@a := 1 之类的变量,回报这个错误 语句类似于“set @rownum=0, @preval=null; select @ ...
- 开源项目WebImageView载入图片
项目地址:https://github.com/ZaBlanc/WebImageView 作者对载入图片,以及图片的内存缓存和磁盘缓存做了封装. 代码量不多.可是可以满足一般的载入图片. 先看下项目结 ...
- Java各类格式转换
1.Java 根据固定格式的Excel生成实体类 2.GPS 经纬度转换为 经过旋转后的平面坐标
- 目标检测之行人检测(Pedestrian Detection)---行人检测之简介0
一.论文 综述类的文章 [1]P.Dollar, C. Wojek,B. Schiele, et al. Pedestrian detection: an evaluation of the stat ...
- WPF DataGrid 获取当前行某列值
[0]是指当前行第1列的单元格位置 注意:DataRowView要求必须引用System.Data命名空间 方法一: DataRowView mySelectedElement = (DataRowV ...
- linux 安装mongo
在Linux中安装Mongodb操作说明 MongoDB配置 版本说明:因本机所装Red Hat 为 64位操作系统故本例以64位的MongDB为例.所用版本如下: (1) Red Hat En ...
- struct对齐
1 基本数据类型的自然对齐 就是说,基本数据类型的变量不能随便放在内存的任意位置,它们的起始地址必须被它们的大小整除. double是8个字节,float,int,enum是4字节,bool.char ...
- 特殊例子--JavaScript代码实现图片循环滚动效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- sprint-boot @ComponentScan扫描多个包
使用@ComponentScan扫描多个包时, @ComponentScan({"ka","com"}) 注意包名不能为org,不然无法启动
- pinpoint本地开发-web模块
web模块中的前端依赖会导致工程很难打包成功,对于这些,我们可以直接注释掉 比如: <plugin> <groupId>com.github.eirslett</grou ...