Twitter bootstrap 如何设置Bootstrap4表单,使其在输入框之前有一个复选框?

Twitter bootstrap 如何设置Bootstrap4表单,使其在输入框之前有一个复选框?,twitter-bootstrap,bootstrap-4,Twitter Bootstrap,Bootstrap 4,我想做到这一点: 我希望在一行中有4个大小相等的列,第一行包含标签,第二行实际输入框前面有一个复选框 我尝试了以下操作,但只能在一行中显示一个控件集,页边距已断开: <fieldset class="border p-2"> <legend class="w-auto pl-1 pr-1">Trial Restrictions</legend> <div class="form-group"> <div cl

我想做到这一点:

我希望在一行中有4个大小相等的列,第一行包含标签,第二行实际输入框前面有一个复选框

我尝试了以下操作,但只能在一行中显示一个控件集,页边距已断开:

<fieldset class="border p-2">
    <legend class="w-auto pl-1 pr-1">Trial Restrictions</legend>
    <div class="form-group">
        <div class="form-row">
            <label for="TrialRestrictionExpirationDaysValue">Expiration Days</label>
        </div>
        <div class="form-check-inline">
            <input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
            <input type="number" min="0" max="3650" class="form-control" id="TrialRestrictionExpirationDaysValue" name="TrialRestrictionExpirationDaysValue" />
        </div>
    </div>
</fieldset>
如何设置Bootstrap 4表单,使其在输入框前有一个复选框?

我建议使用以下方法:

审判限制 有效期 有效期 有效期 有效期