我有一個引導form.there有兩個性別的複選框。我期待他們並排排列的文本,但這些都沒有正確對齊。bootstrap表單複選框未正確對齊
<form class="form-block">
<div class="form-group">
<label class="sr-only" for="exampleInputEmail3">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail3" placeholder="Email">
</div>
<div class="form-group">
<label class="sr-only" for="exampleInputEmail3">username</label>
<input type="text" class="form-control" id="username" placeholder="username">
</div>
<div class="form-group">
<label class="sr-only" for="exampleInputPassword3">Password</label>
<input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password">
</div>
<div class="form-group">
<label class="sr-only" for="exampleInputPassword3">Password</label>
<input type="password" class="form-control" id="exampleInputPassword3" placeholder="Password">
</div>
GENDER
<div class="checkbox">
<p> MALE
<input type="checkbox" name="checkbox" value="gender"></p>
<p> FEMALE
<input type="checkbox" name="checkbox" value="gender"> </p>
</div>
<button type="submit" class="btn btn-default">Sign in</button>
</form>
這裏的jsfiddle link 的我試過的代碼。
@but我需要在右側複選框 –