看看这个:
http://jsfiddle.net/TtYtS/8/

<div class="indent input-prepend pull-right" style="margin:2px 0 0 20px">
    <span class="add-on">
        <i class="icon-search"></i>
    </span>
    <input type="text" class="input-medium" placeholder="Search by brand name">
</div>


由于添加的样式属性,搜索框与菜单项(垂直)对齐。它还在它们之间创建了一些间距。

没有该样式属性或创建自己的类,是否有任何方法可以完成这两项工作?

最佳答案

你可以尝试改变

<div class="indent input-prepend pull-right" style="margin:2px 0 0 20px">



    <div class="input-prepend offset1">

09-25 17:06
查看更多