2013-03-23 66 views
1

我想要實現使用Laravel Bootstraper這個佈局:Laravel Bootstraper並排排列兩個元素邊對照組


enter image description here

我的代碼如下所示:

<?php 
    echo Form::control_group(
     Form::span6_text('something', 'Test 1'), 
     Form::span6_text('something', 'Test 2'), 
     Form::span6_text('something', 'Test 3') 
    ); 
?> 

問題: Bootstraper將每個表單元素包裝在單獨的div.control-group以及第三個元素不顯示:


enter image description here

<div class="control-group &lt;input class=" span6"="" type="text" name="something" value="Test 3" id="something">"&gt;<input class="control-label span6" type="text" name="something" value="Test 1" id="something"> 
<div class="controls"> 
<input class="span6" type="text" name="something" value="Test 2" id="something"> 
</div> 
</div> 

能像這樣用Bootstraper怎麼辦呢? :D
謝謝!

+0

您可以張貼輸出HTML頁面? – 2013-03-23 23:17:21

+0

@MohamedAbusaid:我剛剛編輯了這個問題。 – intelis 2013-03-23 23:51:52

+0

你有試過什麼嗎? – Mooseman 2013-03-23 23:56:36

回答

0

JS Fiddler Example

<div class="small">Control group</div><div class="container well span6"><div class="control-group" > 
    <input class="control-label" type="text" name="something" placeholder="Input text element" id="something"> 
    <input class="control-label" type="text" name="something" placeholder="Input text element" id="something"> 
    <div class="controls"> 
     <input class="span3" type="button" name="something" value="HTML5 button" id="btn btn-primary"/> 
    </div> 
</div>