【发布时间】:2018-11-03 00:32:13
【问题描述】:
请告诉我如何使用引导程序右对齐此表单“登录”按钮。我厌倦了使用 pull-right 类。但是调整大小后我的按钮位置不正确。
<div role="form">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control"/>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control"/>
</div>
<div class="checkbox">
<label>
<input type="checkbox"> Remember Me
</label>
</div>
<button class="btn-info btn">Log in</button>
</div>
【问题讨论】:
-
你试过
pull-right这门课吗? -
是的,但是完成后,按钮会关闭
-
我在调整浏览器大小时没有发现任何问题。检查这里。 jsbin.com/cajogozetewi/1
标签: css twitter-bootstrap