我想在一行中有h3文本和输入字段(h3与左边对齐,输入与右边对齐,具有相同的垂直位置)。插入与标题标签内嵌的输入字段
我尝试过form-inline
类,但它不能按我想要的方式工作。
代码:
<div class="col-md-6">
<form class="form-inline">
<div class="form-group">
<h3 class="pull-left">Upcoming Events</h3>
<input type="text" class="form-control pull-right" placeholder="Country/Region">
</div>
</form>
</div>
这里是如何的样子(我添加第二列与硬编码的利润,以显示我多么希望它看起来像):http://www.bootply.com/f7QEh7oeqF
任何想法,我怎么能格式化我想要的方式?