2012-02-08 63 views
0

我做的,在<div class="offset3 span6">bootstrap-responsive.css如下:如何正確使用Twitter Bootstrap放置兩個內嵌輸入字段?

<div class="control-group"> 
    <label class="control-label" for="passport1">Series and passport number</label> 
    <div class="controls"> 
    <input type="text" class="input-small inline" id="passport1" placeholder="" maxlength="4"> 
    <input type="text" class="input-medium inline" id="passport2" placeholder="" maxlength="6"> 
    <p class="help-block">Please input your passport details into two fields above</div>      
    </div> 
</div> 

但文本標籤不與輸入字段(它是較低的)對齊。如何解決它?

demo

+0

你有一個測試例子嗎? – 2012-02-08 17:25:00

+0

@BarryChapman,剛創建它 - http://jsfiddle.net/and7ey/5S5CB/ – 2012-02-08 17:29:19

+0

你想如何排隊? – 2012-02-08 17:35:43

回答

0

你有你的5px的標籤上的頂部填充;

考慮重寫這個內聯或創建一個更具體的CSS選擇器,然後再試一次。

相關問題