**主页面展示:**
页面代码(HTML)
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>百度一下,你就知道</title>
<link rel="icon" href="BAIDU.ico"/>
<link class="" rel="stylesheet" href="baidu1.css"/>
</head>
<body>
<div class="center">
<a href=""><img src="baidu11.PNG" alt=""/></a>
</div>
<div class="input">
<form action="#" method="get"><span><input type="text" maxlength="100" /></span><span class="photo"></span><input type="submit" value="百度一下"/>
</form>
</div>
</body>
</html>
CSS代码:
*{
margin:0;
padding:0;
}
body{font:14px/24px '微软雅黑','宋体'}
.center{
width: 800px;
margin-left: 650px;
margin-top: 100px;
margin-bottom: 20px;
}
.center img{
width: 220px;
height: 75px;
}
.input span{
padding-left: 440px;
float: left;
white-space: nowrap;
}
input[type="text"]{
-web-kit-appearance:none;
-moz-appearance: none;
display: block;
margin: 0 auto;
font-size:15px;
}
input[type="text"]{
height:39px;
width:520px;
border:1px solid #38f;
outline:0;
padding-left: 8px;
}
input[type="submit"]{
margin: 0;
height: 41px;
width: 100px;
background: #38f;
color: #fff;
font:16px '微软雅黑';
border:none;
}
input[type="submit"]:hover{
background: #0e62a3;
cursor: pointer;
}