CSS:
.round {
width: 100%;
border-radius: 15px;
border: 1px #000 solid;
padding: 5px 5px 5px 25px;
position: absolute;
top: 0;
left: 0;
z-index: 5;
}
.corner {
position: absolute;
top: 3px;
left: 5px;
height: 20px;
width: 20px;
z-index: 10;
border-radius: 10px;
border: none;
background: #000; /* Set the bg image here. with "no-repeat" */
}
.search {
position: relative;
width: 190px;
height: 30px;
}
Run Code Online (Sandbox Code Playgroud)
HTML :
<form id="search-form">
<div class="search">
<input type="text" name="search" class="round" />
<input type="submit" class="corner" value="" />
</div>
</form>
Run Code Online (Sandbox Code Playgroud)
演示:http : //jsfiddle.net/Bh4g3/