搜索框和搜索按钮对齐问题解决
HTML部分
<div class="content_input">
<input type="text" class="search_field"><button class="search_btn">查询</button>
</div>
CSS部分
.content_input .search_field{ /*输入框样式*/
width: 536px;height: 38px;
line-height: 38px;
border: 1px solid #3388FF;
float: left;
}
.content_input .search_btn{ /*按钮样式*/
width: 103px;
height: 38px;
line-height: 38px;
color: #FFFFFF;
font-weight: 900;
background: #3388FF;
border:none;
float: left;
}
兼容各浏览器。