我自己简单做了一个,因为上传图片麻烦,所以图中的图片我直接用文字代替,弄个背景就ok,代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="author" content="blog.anchen8.net">
<title>无标题 1</title>
<style>
*{
margin: 0;
padding: 0;
}
.search{
margin: 30px;
width: 210px;
height:35px;
border:1px solid silver ;
}
.search_key{
width: 150px;
height: 25px;
border: none;
margin-top: 5px;
margin-left: 5px;
}
.submit{
background:none;
margin-top: 5px;
width:40px;
height: 25px;
border: none;
/*这个添加背景图即可*/
}
</style>
</head>
<body>
<form action="" method="post">
<div class="search">
<input type="text" class="search_key" value="站内搜索" />
<input type="submit" class="submit" value="搜索">
</div>
</form>
</body>
</html>
效果如下: