我正在努力在导航栏中对齐我的表单,我正在使用bootstrap并且我使用了几种方法无济于事。如果有人有线索,请帮忙。
<form class="navbar-form navbar-right" role="form">
<div class="form-group form-group-sm">
<label class="sr-only" for="email">E-mail address</label>
<input type="email" class="form-control" id="email" placeholder="Email">
</div>
<div class="form-group form-group-sm">
<label class="sr-only" for="password">Password</label>
<input type="email" class="form-control" id="email" placeholder="Password">
</div>
<div class="checkbox checkbox-sm">
<label><input type="checkbox">Remember me</label>
</div>
<button type="submit" class="btn btn-info btn-sm">Sign in</button>
</form>