自举填充面板到行的底部

时间:2018-10-02 16:42:56

标签: html css asp.net-mvc razor bootstrap-4

需要帮助将Bootstrap面板填充到该行的底部。

基本上我在一行中有2行,该行的一半长于另一行。如何使行的后半部分与另一半匹配。

这是我所拥有的屏幕截图。

Page Example

这是我如何组织代码。

<div class="row">
    <div class="col-lg-6">
        <div class="panel panel-default card-view" id="tour-dropdown">
            <div class="panel-wrapper collapse in">
                <div class="panel-body">
                    <div class="col-lg-12 col-md-4 col-sm-3 col-xs-12 pull-left">
                        <p>Choose an account</p>
                        <form asp-action="Index" asp-controller="Details" method="get">
                            <div class="form-group">
                                <select class="selectpicker" data-style="btn-white" asp-for="@Model.SelectedAccountValue" data-width="fit" data-size="5" data-live-search="true" onchange="this.form.submit()">
                                    @foreach (var item in Model.AccountList)
                                {
                                    <option value="@item.AccountValue">@item.AccountName (@item.AccountCode)</option>
                            }
                                </select>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12 col-md-6 col-sm-6 col-xs-12">
                <div class="panel panel-default card-view pa-0">
                    <div class="panel-wrapper collapse in">
                        <div class="panel-body pa-0">
                            <div class="sm-data-box">
                                <div class="container-fluid">
                                    <div class="row">
                                        <div class="col-xs-12 text-center pl-0 pr-0 data-wrap-left" id="tour-account-value">
                                            <span class="txt-dark block counter">@Model.AccountValue</span>
                                            <span class="weight-500 uppercase-font block">Account Value</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                <div class="panel panel-default card-view pa-0">
                    <div class="panel-wrapper collapse in">
                        <div class="panel-body pa-0">
                            <div class="sm-data-box">
                                <div class="container-fluid">
                                    <div class="row">
                                        <div class="col-xs-12 text-center pl-0 pr-0 data-wrap-left" id="tour-day-change">
                                            <span class="txt-dark block counter" id="day-change">@Model.DayChangeString</span>
                                            <span class="weight-500 uppercase-font block">Day Change</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                <div class="panel panel-default card-view pa-0">
                    <div class="panel-wrapper collapse in">
                        <div class="panel-body pa-0">
                            <div class="sm-data-box">
                                <div class="container-fluid">
                                    <div class="row">
                                        <div class="col-xs-12 text-center pl-0 pr-0 data-wrap-left" id="tour-12-month">
                                            <span class="txt-dark block counter" id="twelve-month-change">@Model.TwelveMonthChangeString</span>
                                            <span class="weight-500 uppercase-font block">12-Month Change</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="panel panel-default card-view" id="tour-dropdown">
            <div class="panel-wrapper collapse in">
                <div class="panel-body">
                </div>
            </div>
        </div>
    </div>
</div>

任何帮助使该右侧面板延伸到该行底部的方法,将不胜感激。

0 个答案:

没有答案