我有一个简单的表单,通过 jqBootstrapValidation 进行错误处理。我将它设置为当浏览器足够宽时它是水平的。这是它的外观:http: //i.imgur.com/K0JKzb8.png
但是,当我输入错误的电子邮件时,表格不再对齐。 http://i.imgur.com/4Fr2UTq.png
这是我正在使用的代码。我只是无法让它工作。
<form class="form-inline">
<div class="form-group form-group-lg">
<div class="col-lg-6 text-center">
<label class="sr-only" for="name">Full Name</label>
<input class="form-control" type="text" id="formGroupInputLarge" placeholder="Full name" name="name" required data-validation-required-message="Please enter your full name." >
<p class="help-block text-danger"></p>
</div>
</div>
<div class="form-group form-group-lg">
<div class="col-lg-6 text-center">
<label class="sr-only" for="name">Your email</label>
<input type="email" class="form-control" type="text" id="formGroupInputLarge" placeholder="Your email" name="email" required data-validation-required-message="Please enter your email." data-validation-email-message="email not valid">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="col-lg-12 text-center">
<div id="success"></div>
<button type="submit" id="submit" class="btn btn-success btn-lg">Submit</button>
</div>
</form>
有小费吗?非常感谢!