0
我是引导程序的新手,并且在将两个输入字段放在一起时出现问题。我在互联网上搜索(和bootstrap.com),但找不到anser。 The code彼此相邻的两个输入字段引导程序3
Result. But I need the input fields and button next to each other in one row
我试着用列...没有工作
我是引导程序的新手,并且在将两个输入字段放在一起时出现问题。我在互联网上搜索(和bootstrap.com),但找不到anser。 The code彼此相邻的两个输入字段引导程序3
Result. But I need the input fields and button next to each other in one row
我试着用列...没有工作
你可以遵循:Display two fields side by side in a Bootstrap Form
<div class="input-group">
<input type="text" class="form-control" placeholder="Start"/>
<span class="input-group-addon">-</span>
<input type="text" class="form-control" placeholder="End"/>
你可以试试下面的代码
<div class="container content">
<div class='row'>
<form role="form" class="form-horizontal" method="post">
<div class='col-xs-12 col-sm-4'>
<div class="form-group">
<input class="form-control" name="" placeholder="Search from this date">
</div>
</div>
<div class='col-xs-12 col-sm-4'>
<div class="form-group">
<input class="form-control" name="" placeholder="Search till this date">
</div>
</div>
<div class='col-xs-12'>
<div class="form-group">
<button class="btn btn-primary">Search</button>
</div>
</div>
<div class='col-xs-12'>
<div class="form-group">
<a href="link">Back</a>
</div>
</div>
</form>
</div>
</div>
感谢您的快速评论。我用你的例子,发现“输入组是错误的”。我修正了它:“form-incline”。我在http://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-forms.php上找到了它。 –