【发布时间】:2015-06-12 10:00:53
【问题描述】:
我的表单在 Twitter Bootstrap 3 中看起来很棒,但我不希望它看起来像这样:
还有更多这样的:
我可以使用btn-group-vertical btn-group-lg btn-block 类在另一个页面上创建我的按钮组。但我还没有找到任何与 Bootstrap 3 中的表单控件相同的功能。
我的表单代码:
<!-- login form box -->
<form name="loginform" method="post" action="index.php" role="form">
<div class="form-group col-lg-3">
<label for="login_input_username" class="sr-only">Username</label>
<input type="text" id="login_input_username" name="user_name" class="form-control input-lg" placeholder="Enter username" required />
</div>
<div class="form-group col-lg-3">
<label for="login_input_password" class="sr-only">Password</label>
<input type="password" id="login_input_password" name="user_password" class="form-control input-lg" class="form_control" placeholder="Enter password" autocomplete="off" required />
</div>
<div class="form-group col-lg-3">
<button type="submit" name="login" class="btn btn-block btn-success btn-lg"><span class="glyphicon glyphicon-log-in"></span> Login</button>
</div>
<div class="form-group col-lg-3">
// here I display the alert box
</div>
</form>
【问题讨论】:
标签: html forms twitter-bootstrap twitter-bootstrap-3