<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>百度知道</title>
</head>
<link rel="stylesheet" href="css/bass.css" type="text/css">
<link rel="stylesheet" href="css/style.css" type="text/css">
<body>
<header>
<div class="login">
<p>
<a href="#">百度首页</a>
<a href="#">消息</a>
<a href="#">私信</a>
<a href="#">商城</a>
</p>
</div>
<div class="center">
<a href="#">
<img src="img/zhidao.gif" alt="百度log" width="118" height="45" class="log">
</a>
<div class="searchbox">
<p>
<a href="#">网页</a>
<a href="#">咨询</a>
<a href="#">视频</a>
<a href="#">图片</a>
<a href="#">知道</a>
<a href="#">文库</a>
<a href="#">贴吧</a>
<a href="#">采购</a>
<a href="#">地图</a>
<a href="#">更多</a>
</p>
<div>
<input type="text" class="text">
<input type="button" class="btn" value="百度搜索">
<a href="#" class="ask">我要提问</a>
</div>
</div>
</div>
</header>
<section id="nav-content" class="nav-menu-content-box">
<div class="nav-menu-content">
<div class="nav-menu-content-item">
<div class="nav-menu-content-cell">
<div class="nav-menu-content-sell">
<div class="nav-menu-content-list">
<div class="nav-menu-content-home">
<a href="#">首页</a>
</div>
<div class="nav-menu-content-info">
<div class="navMenu-item navMenu-item-one">
<a href="javascript:;" class="navMenu-title">问题</a>
<div class="navMenu-item-content">
<ul>
<li>
<a href="javascript:;">全部问题</a>
</li>
<li>
<a href="javascript:;">经济金融</a>
</li>
<li>
<a href="javascript:;">企业管理</a>
</li>
<li>
<a href="javascript:;">法律法规</a>
</li>
<li>
<a href="javascript:;">社会民生</a>
</li>
<li>
<a href="javascript:;">科学教育</a>
</li>
<li>
<a href="javascript:;">健康生活</a>
</li>
<li>
<a href="javascript:;">体育运动</a>
</li>
<li>
<a href="javascript:;">文艺演出</a>
</li>
<li>
<a href="javascript:;">电子数码</a>
</li>
<li>
<a href="javascript:;">电脑网络</a>
</li>
<li>
<a href="javascript:;">娱乐休闲</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</body>
</html>
/* CSS Document */
body,p,header,h2,h3,h4,h5,nav,section{
margin: 0;
text-align: left;
}
ul{
margin: 0;
list-style: none;
padding: 0;
}
input{
margin: 0;
padding: 0;
}
body{
font-size: 14px;
font-family: "幼圆";
}
.center{
width: 900px;
margin: 0 auto;
}
.login{
float: right;
}
.searchbox .text{
width: 453px;
height: 32px;
border: 1px solid #b8b8b8;
vertical-align: top;
}
.searchbox .btn{
width: 97px;
font: 14px/32px "微软雅黑";
border: 1px solid #cccccc;
background: #4e6ef2 repeat-x ;
font-size: 16px;
color: #fffffe;
}
.log{
float: left;
margin: 5px 14px 0px 2px;
}
.searchbox p{
padding-bottom: 10px;
}
.searchbox p a{
font: 14px/14px "微软雅黑";
color: #555555;
margin-right: 13px;
}
.searchbox .ask{
font-size: 16px;
color: #3c7ce0;
text-decoration: underline;
}
/* CSS Document */
.navMenu-item :hover.navMenu-title{
background: #36CA61;
cursor: pointer;
}
.navMenu-item :hover.navMenu-item-content{
background: #ffffff;
cursor: pointer;
}
.navMenu-item-content ul li a:hover{
color: #35B55B;
border-bottom:2px solid #4aca6d;
}
.nav-menu-content{
overflow:hidden;
height:40px;
position: relative;
z-index: 100;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 1px rgba(0,0,0,.2);
box-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.nav-menu-content-item {
box-shadow: 0 2px 15px #ccc;
height: 325px;
position: absolute;
width: 100%;
background-color: #f1f1f1;
background-color: rgba(243,243,243,.95);
-webkit-transition: all .2s ease-in;
-moz-transition: all .2s ease-in;
-o-transition: all .2s ease-in;
transition: all .2s ease-in;
}
.nav-menu-content-cell{
height: 40px;
width: 100%;
background: #0abf00;
}
.nav-menu-content-sell{
width: 1000px;
position: relative;
margin: 0 auto;
}
.nav-menu-content-list{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 325px;
}
.nav-menu-content-home{
display: inline;
float: left;
width: 10%;
}
.nav-menu-content-home a{
display: block;
color: #faff64;
text-align: left;
text-indent: 16px;
font-size: 16px;
height: 40px;
line-height: 40px;
border-right: 1px solid #09a800;
}
.nav-menu-content-info{
widows: 64px;
display: inline;
float: left;
}
.nav-menu-content-box{
z-index:100;
position: relative;
}
.navMenu-item-content{
height: 285px;
border-right: 1px solid #dddddd;
transition: all ease-in .2s;
padding-top: 15px;
}
.navMenu-item-content ul li{
width: 50%;
display: inline;
float: left;
height: 30px;
text-align: center;
}
.navMenu-item-content ul li a{
color: #5F5F5F;
font-size: 15px;
border-right: 0;
height: 30px;
line-height: 30px;
display: inline;
}
.navMenu-title{
}
自制网页所需代码还在