2012-09-02 26 views
1

我正在嘗試將twitter bootstrap整合到我的應用程序中。但我注意到我的應用程序的行爲不同於twitter bootstrap showcase ...整合twitter bootstrap並使用「Base CSS/form/Validation states」

我在參考Base CSS/ form/ Validation states部分。

例如,下面的

<div class="control-group"> 
      <label class="control-label" for="email">Email</label> 
      <div class="controls"> 
       <div class="input-prepend"> 
        <span class="add-on">@</span> <input type="text" name="member.email" value="" id="email" autofocus="autofocus" /> 

       </div> 
      </div> 
     </div> 

不會呈現內嵌而是如下:

screen capture

我不知道我錯了。任何人都可以幫忙嗎?

回答

1

您給出的示例來自"Preppended and Appended Inputs"部分,並且該示例中不包含標籤。但是,假設「渲染內聯」您的意思是標籤與輸入控件相鄰,可以使用窗體上的form-horizontal類實現。

+0

非常感謝Merv。 – balteo