我想有兩個輸入(登錄和密碼)。一個一個,每個關於col-sm-6。如果沒有col-sm-offset-3,我不能將這些輸入居中。有了偏移量它確實有效,但我希望將這些輸入集中在每個屏幕上。也許我可以在某處添加.center>或者margin auto?但是,在...如何在引導中輸入形式?
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="box">
<div class="col-lg-12">
<hr>
<h4 class="text-center">Logowanie</h4>
<hr>
<form method="post" role="form" class="form-horizontal">
{{ csrf_field() }}
<div class="row">
<div class="form-group">
<div class="col-sm-6">
<input type="email" class="form-control" name="email" placeholder="email">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<input type="email" class="form-control" name="email" placeholder="email">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>