Home >Web Front-end >HTML Tutorial >bootstrap样式问题_html/css_WEB-ITnose
<div class="form-group"> <label class="control-label col-md-1" for="Receiver">收件人</label> <div class="col-md-10" style="border:1px dashed #ff0000;"> <input type="text" class="form-control" /> <input class="form-control" data-val="true" data-val-length="4到20个字符" data-val-length-max="20" data-val-length-min="4" data-val-required="必填" id="Receiver" name="Receiver" type="text" value="" /> <span class="field-validation-valid text-danger" data-valmsg-for="Receiver" data-valmsg-replace="true"></span> </div> </div>
<div class="form-group col-md-12">外面的div定个占有栅栏试试
<div class="form-group col-md-12">外面的div定个占有栅栏试试
<div class="container"> <div class="row"> <div class="form-group"> <label class="control-label col-md-1" for="Receiver">收件人</label> <div class="col-md-10"> <input class="form-control" data-val="true" data-val-length="4到20个字符" data-val-length-max="20" data-val-length-min="4" data-val-required="必填" id="Receiver" name="Receiver" type="text" /> <span class="field-validation-valid text-danger" data-valmsg-for="Receiver" data-valmsg-replace="true"></span> </div> </div> </div></div>
<div class="container"> <div class="row"> <div class="form-group"> <label class="control-label col-md-1" for="Receiver">收件人</label> <div class="col-md-10"> <input class="form-control" data-val="true" data-val-length="4到20个字符" data-val-length-max="20" data-val-length-min="4" data-val-required="必填" id="Receiver" name="Receiver" type="text" /> <span class="field-validation-valid text-danger" data-valmsg-for="Receiver" data-valmsg-replace="true"></span> </div> </div> </div></div>
<div class="container"> <div class="row"> <div class="form-group"> <label class="control-label col-md-1" for="Receiver">收件人</label> <div class="col-md-10"> <input class="form-control" data-val="true" data-val-length="4到20个字符" data-val-length-max="20" data-val-length-min="4" data-val-required="必填" id="Receiver" name="Receiver" type="text" /> <span class="field-validation-valid text-danger" data-valmsg-for="Receiver" data-valmsg-replace="true"></span> </div> </div> </div></div>