Bootstrap Fieldset Legend完全由Panel Panel默认覆盖

时间:2017-10-19 13:51:25

标签: html css twitter-bootstrap bootstrap-4

我在第一个div中有两个fieldset然后我使用面板但是我的面板从div上面覆盖,请看下面的屏幕截图

1。)使用Filedsets和详细信息 2.)添加面板后,面板标题页面覆盖整个内容

Before Added Panel

After Added Panel here

<div class="container">
    <div class="enquiry">

        <fieldset class="col-md-12">
            <legend><h3>Nag</h3></legend>
            <div class="row form-group">
                <div class="col-md-4">
                    <h4>DOB:&nbsp;<span>22-April-2001, Male</span> </h4>
                    <h4>Enquired:&nbsp;<span>07 </span> </h4>
                    <h4>Academic Year:&nbsp;<span>2017-2018</span></h4>
                </div>
                <div class="col-md-4">
                    <h4>Nagarjuna  (Father)</h4>
                    <h4><i class="fa fa-phone"></i>&nbsp;9635821471</h4>
                    <h4><i class="fa fa-envelope"></i>&nbsp;<span class="enq-parent-email">nag.akki@gmail.com</span> </h4>
                </div>
                <div class="col-md-4">
                    <h4>
                        <i class="fa fa-home fa-2x"></i>

                    </h4>
                </div>
            </div>
        </fieldset> 

        <fieldset class="col-md-12 margin-bottom">
            <legend><h3>Overview</h3></legend>
            <div class="row form-group margin-bottom">
                <div class="col-md-4">
                    <label>Current Name: </label>
                    <input type="text" class="form-control" readonly="" value="Name">
                </div>
                <div class="col-md-4">
                    <label>Current Loasdaf Name: </label>
                    <input type="text" class="form-control" readonly="" value="asdfaiwewrw">
                </div>
                <div class="col-md-4">
                    <label>fasdaskdlfa;skdljfa;skldf</label><br>
                    <input type="radio" name="transport" readonly="" checked=""> Yes
                    <input type="radio" name="transport" readonly=""> no
                </div>
            </div>
            <div class="row form-group margin-bottom">
                <div class="col-md-4">
                    <label>Current  Address: </label>
                    <input type="text" class="form-control" readonly="" value="#07, Kondar, Melborne-38">
                </div>
                <div class="col-md-4">
                    <label>asdfasdfasdf</label>
                    <input type="text" class="form-control" readonly="" value="asdfasd">
                </div>
                <div class="col-md-4">
                    <label>asdfasdfasdfasd</label><br>
                    <input type="radio" name="visit" readonly="" checked=""> Yes
                    <input type="radio" name="visit" readonly=""> no
                </div>
            </div>
            <div class="row form-group margin-bottom">
                <div class="col-md-4">
                    <label>asdfasdfasdfa</label>
                    <input type="text" class="form-control" readonly="" value="asdfasdf">
                </div>
                <div class="col-md-4">
                    <label>asdfasdfasdfasd</label>
                    <input type="text" class="form-control" readonly="" value="asdfasdf">
                </div>
                <div class="col-md-4">
                    <label>asdfasdfasdfas</label><br>
                    <input type="radio" name="visit" readonly="" checked=""> Yes
                    <input type="radio" name="visit" readonly=""> no
                </div>
            </div>
            <div class="row form-group">
                <div class="col-md-4">
                    <label>Enquiry Status </label>
                    <select class="form-control">
                        <option value="">Select Status</option>
                        <option value="Inprogress">Inprogress</option>
                        <option value="ConvertedtoApplication">Converted to Application</option>
                        <option value="Cloased, Not Interested"></option>
                    </select>
                </div>
                <div class="col-md-8">
                    <label>Questions ?</label>
                    <textarea class="form-control" rows="3"></textarea>
                </div>
            </div>
        </fieldset> 

    </div>
    <br>
</div>

enter image description here

这对我来说很奇怪,因为我从未见过这样的问题。

等待回复,先谢谢!!

1 个答案:

答案 0 :(得分:0)

您可以在bootstrap.try中使用行类

<div class="container">
        <div class="row">

         <div class="enquiry">
            <fieldset class="col-md-12">
                .................................
            </fieldset> 
            <fieldset class="col-md-12 margin-bottom">
                ........................................
            </fieldset>
          </div>    
        </div>
        <div class="row">

            <h1>
              Add Here your content
            </h1>

        </div>

    </div>