Laravel Collective / html表格 - 3栏

时间:2018-01-08 07:02:41

标签: html twitter-bootstrap laravel-5 laravelcollective

我正在使用Laravel Collective / html Form在Laravel中创建我的视图,我想要一个3列视图,我不知道要删除一个输入到另一个之间的空格,我想在它们之间有一个空格输入 这是我的表单代码

<div class="container-fluid"><!-- Row 1 -->
            <div class="col-lg-4" id="userFormColumn2">
                <div class="form-group required">
                    {!! Form::label('reg_no', 'Vessel Reg No:', ['class' => 'control-label']) !!}
                    {!! Form::text('reg_no', old('reg_no'), ['class' => 'form-control input-normal','placeholder' => 'Vessel RegNo']) !!}
                </div>
            </div>

            <div class="col-lg-4" id="userFormColumn2">
                <div class="form-group required ">
                    {!! Form::label('captain_name', 'Captain Name:', ['class' => 'control-label']) !!}
                    {!! Form::text('captain_name', old('captain_name'), ['class' => 'form-control input-normal','placeholder' => 'Captain Name']) !!}
                </div>
            </div>

            <div class="col-lg-4" id="userFormColumn2">
                <div class="form-group required">
                    {!! Form::label('vessel_name', 'Vessel Name:', ['class' => 'control-label']) !!}
                    {!! Form::text('vessel_name', old('vessel_name'), ['class' => 'form-control input-normal','placeholder' => 'Vessel Name']) !!}
                </div>
            </div>
        </div>

图片 查看当前视图

https://i.stack.imgur.com/l0oP0.jpg

1 个答案:

答案 0 :(得分:1)

默认引导程序具有以下样式:

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

你的 col-lg-4 必须有这些样式, padding-right:15px; padding-left:15px; 否则它就像你在附图中所显示的那样。

注意:为类编写的其他样式(userFormColumn2)可能会覆盖默认的引导样式