【发布时间】:2020-10-24 07:34:32
【问题描述】:
我目前正在开发一个简单的登录系统,但我遇到了一些前端困难。我正在尝试使用一些输入和一个按钮制作一个基于中心的登录表单。所以基本上现在我可以在中心内进行一些输入,但是当我尝试添加一个按钮时,我得到了这样的结果:
- 注意:我需要按钮位于表单的中心。另外,我在中间的表格是否正确?
我的 HTML 代码:
<div class="container">
<h1 class="page-header text-center apie_m_cga">~ Support Desk ~</h1>
<hr>
<div class="row justify-content-center">
<div class="form-group col-md-3 col-md-offset-7 align-center ">
<br>
<input type="text" id="inputUsername6" placeholder="Username" class="form-control mx-sm-3 text-center">
<br>
<input type="password" id="inputPassword6" placeholder="Password" class="form-control mx-sm-3 text-center">
<br>
<button type="button" class="btn btn-primary btn-lg">Login</button>
</div>
</div>
<br>
</div>
【问题讨论】:
标签: html css forms twitter-bootstrap