我想使用Laravel Bootstraper实现此布局:
我的代码如下所示:
<?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
中,并且第三个元素没有显示:
<div class="control-group <input class=" span6"="" type="text" name="something" value="Test 3" id="something">"><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 :(得分:0)
<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>