CSS代码
<style type="text/css">
*{
margin:0;
padding:0;
}
form{
position:relative;
margin:20px;
}
input{
border:1px solid #00CCFF;
background:#fff;
position:absolute;
}
#keyword{
height:24px;
line-height:24px;
padding-left:2px;
width:150px;
color:#bbb;
}
#put-in{
height:26px;
left:150px;
width:50px;
}
</style>
HTML代码
<form id="form1" name="form1" method="post" action="http://www.865171.cn">
<label>
<input type="text" name="keyword" id="keyword" value="www.865171.cn" />
</label>
<label>
<input type="submit" name="put-in" id="put-in" value="搜索" />
</label>
</form>