百度一下网页简单html源码

效果图

index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/base.css"/>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
  <title>百度一下,你就知道</title>
</head>
<body>
    <div class="nav">
    	<span id="nav-b">
      <a href=""class="nav-a">新闻</a>
      <a href=""class="nav-a">hao123</a>
      <a href=""class="nav-a">地图</a>
      <a href=""class="nav-a">视频</a>     
      <a href=""class="nav-a">贴吧</a>
      <a href=""class="nav-a">学术</a>
      <a style="font-weight:normal" href=""class="nav-a">登录</a> </span>
      <li id="zzr"><span id="nav-b"><a style="font-weight:normal"  href="" class="nav-a">设置</a> </span>
      <ul>
        <li><a href="#" class="shezhi">搜索设置</a></li>
        <li><a href="#" class="shezhi">高级搜索</a></li>
        <li><a href="#" class="shezhi">关闭预测</a></li>
        <li><a href="#" class="shezhi">搜索历史</a></li>
      </ul></li>
      <a class="more" href="">更多产品</a>
      </div>       
     <div id="logo">
      <img src="img/bd_logo1.png" width="270" height="120">
      </div>     
      <form>  
      		  <input type="text">
    	<input type="submit" name="send" class="search_butt" value="百度一下" />
    	     <!--<button type="button">百度一下</button>-->
    </form>
  <div class="footer">
  	<div class="img"><img src="img/zbios_x2_9d645d9.png "width="60" height="60">
  	<br /><p><b>百度</b></p>
  	</div>
  	<div class="about">
  		<a href=""class="about-a">把百度设为主页</a>
  		<a href=""class="about-a">关于百度</a>
  		<a href=""class="about-a">About Baidu</a>
  		<a href=""class="about-a">百度推广</a>
  	</div>
  	<div class="foot">
©2019&nbsp;Baidu&nbsp;
  		<a href="">使用百度前必读</a>
  		<a href="">意见反馈 </a>&nbsp;
  		京ICP证030173号  <img src="img/icons_1.png"/>&nbsp;&nbsp;
  		<a href="">京公网安备11000002000001号</a><img src="img/icons_2.png"/>
  	</div> 
  </div>
    </div>
</body>
</html>

index.css

* {
	padding: 0;
	margin: 0;
}

#nav-b a {
	color: black;
}

#nav-b a:hover {
	color: blue;
}

.nav {
	margin-top: 19px;
	margin-bottom: 5px;
	display: inline-block;
	clear: both;
	float: right;
	padding-right: 10px;
}

.nav-a {
	margin-left: 15px;
	line-height: 24px;
	font-size: 13px;
	color: #666;
	text-decoration: underline;
	font-weight: bold;
}

#zzr {
	display: inline;
	list-style: none;
}

.nav li ul {
	list-style: none;
	display: none;
	position: relative;
}

.nav li:hover ul {
	border: 1px solid #ccc;
	color: blue;
	display: block;
	position: absolute;
	right: 60px;
	top: 38px;
}

.shezhi {
	text-decoration: none;
	font-weight: normal;
	padding-right: 15px;
	margin-left: 15px;
	line-height: 24px;
	font-size: 9px;
	color: #666;
}

.more {
	margin-left: 15px;
	line-height: 24px;
	font-size: 13px;
	background-color: #38f;
	color: #fff;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	width: 60px;
	border: 5px;
}

#logo {
	display: block;
	text-align: center;
	padding-top: 80px;
	padding-bottom: 15px;
}

form {
	width: 700px;
	margin: 0 auto;
}

input {
	padding: 0 0 0 7px;
	width: 538px;
	height: 33px;
	border: 1px solid #b6b6b6;
	 float:left;
}

.search_butt {
	width: 100px;
	height: 35px;
	padding-top: 1px;
	padding-bottom: 1px;
	border: 0;
	background-color: #3385ff;
	color: #fff;
	font-size: 15px;
}

form button:hover {
	cursor: pointer;
}

.footer {
	text-align: center;
	padding-top: 230px;
}

p {
	font-size: 12px;
	color: #999;
}

.about {
	padding-top: 15px;
}

.foot {
	font-size: 12px;
	color: #999;
	margin-left: 20px;
}

.foot a {
	font-size: 12px;
	color: #999;
}

.about-a {
	font-size: 12px;
	color: #999;
	margin-left: 15px;
}

 

posted @ 2019-05-15 15:23  ITliujia  阅读(1932)  评论(0编辑  收藏  举报