一、实现代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{padding: 0;margin: 0;}
form{
width: 687px;height: 45px; background: pink;
}
.sear{
width: 609px;height: 39px;
border:solid 3px #e1241a;
float: left;
background-image: url(img/jdnav/photo.png);
background-repeat: no-repeat;
background-position: 570px center;
}
.nav{
width: 72px;height: 45px;
background-color:#e1241a;
border: none;
background-image: url(img/jdnav/search.png);
background-repeat: no-repeat;
background-position: center;
float: left;
}
</style>
</head>
<body>
<form action="" method="">
<input type="text" class="sear"/><
input type="submit" class="nav" value=""/>
</form>
</body>
</html>
二、实现效果
提示文字可在中进行添加。