Twitter bootstrap 使用引导在单行中添加标签和文本框

Twitter bootstrap 使用引导在单行中添加标签和文本框,twitter-bootstrap,css,Twitter Bootstrap,Css,我正在尝试使用引导程序在屏幕中添加标签和文本框,但它没有内联。我不知道我做错了什么。有什么额外的课程需要我使用吗 <div class="form-horizontal"> <div class="control-group row-fluid form-inline"> <label for="name" class="control-label">eReview #</label>

我正在尝试使用引导程序在屏幕中添加标签和文本框,但它没有内联。我不知道我做错了什么。有什么额外的课程需要我使用吗

 <div class="form-horizontal">
     <div class="control-group row-fluid form-inline">
                     <label for="name" class="control-label">eReview #</label>
       <div class="controls">
                     <input type="text" id="name"  class="form-control">
       </div>
     </div>
 </div>

埃雷维尤#

请帮忙

您从未在
标签
上设置
列-*-*
类。控件
字段:


埃雷维尤#

如果您使用的是bootstrap 3,那么下面的代码将帮助您解决问题

<div class="form-horizontal">
     <div class="form-group row">
      <label for="name" class="control-label col-md-4">eReview #</label>
       <div class="col-md-8">
        <input type="text" id="name"  class="form-control" />
       </div>
     </div>
 </div>

埃雷维尤#
或者你可以在这里查一下

行流体仅在引导程序2.3.2中起作用

只有当引导版本为2.3.2时,代码才是好的

 <div class="form-horizontal">
 <div class="control-group row-fluid form-inline">
                 <label for="name" class="control-label">eReview #</label>
   <div class="controls">
                 <input type="text" id="name"  class="form-control">
   </div>
 </div>

埃雷维尤#

如果您使用的是Bootstrap v3,则必须使用Bootstrap col-*类。


埃雷维尤#

非常感谢您的快速回复。。我会接受这个回答检查你的引导版本。@Nedev检查它。。。是的。就在那里。@J.Titus我能知道你用的是什么版本吗?@J.Titus嗯。。。奇怪,为什么在代码段中使用行流体?