gpt4 book ai didi

twitter-bootstrap - 如何在 Bootstrap 中将我的 SignUp From 居中?

转载 作者:行者123 更新时间:2023-11-28 03:31:11 25 4
gpt4 key购买 nike

我试图将这个 Bootstrap form 居中.

我希望输入字段和按钮与 DOM 的中心对齐。

<div>                
<div class = "container">
<div>
<form class = "">
<div class = "row">
<div class = "form-group">
<input type = "email" class = "form-control input-lg" placeholder = "Enter email address "/>
</div>
</div>
<div class = "row">
<div class = "form-group">
<input type = "password" class = "form-control input-lg" placeholder = "Enter password" />
</div>
<input type = "submit" class = "btn btn-info btn-lg"/>
</div>
</form>
</div>
</div>
</div>

最佳答案

尝试使用这个

<div>
<div class="container">
<div align="">
<form class="text-center">
<div class="">
<div class="form-group">
<input type="email" class="form-control input-lg" placeholder="Enter email address " />
</div>
</div>
<div class="">
<div class="col-sm-4">
</div>
<div class="form-group">
<input type="password" class="form-control input-lg" placeholder="Enter password" />
</div>
<input type="submit" class="btn btn-info btn-lg" />
</div>
</form>
</div>
</div>
</div>

关于twitter-bootstrap - 如何在 Bootstrap 中将我的 SignUp From 居中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44730803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com