给左边的控件添上一句 float:left;
<style>
#txtTask{
float:left;
min-width:85%;
}
</style>
html:
<input type="text" id="txtTask" class="form-control" name="task" placeholder="请输入内容" />
<input type="button" class="btn btn-danger" value="发送" />