将两个文本输入并排对齐并触摸

时间:2015-10-29 21:22:35

标签: html5 twitter-bootstrap

使用bootstrap3,这与我尝试做的非常接近

<div class="input-group">
    <input type="text" class="form-control" placeholder="Postal Code"/>
    <span class="input-group-addon"> </span>
    <input type="text" class="form-control" placeholder="City"/>
</div>

看起来像

enter image description here

但我真的想要更像

的东西

postalcode city combo input

1 个答案:

答案 0 :(得分:1)

添加此css课程,它将解决您的问题

.input-group-addon {
padding: 0;
border: 0;
background: #FFF;
}

还有其他方法可以做到这一点,但这是最简单的方法。

相关问题