ブートストラップは優れたモバイルエクスペリエンスを提供しますが、デスクトップでもスキャフォールディング機能の恩恵を受けることができます。ですから、フォームを開発するときには、可能な限り最小限のスペースを使いたいと思っています。そのことを念頭に置いて、私はDemonic Penguinのコードとあなたのコードを改良しました。これと同じように:この実装では
<div id="page" class="container" style="border:solid">
<div class="row" style="padding-top: 12px;"></div>
<div class="row">
<div class="col-md-6 col-md-offset-3 text-center">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="firstName-addon"><i class="fa fa-user"></i></span>
<input id="firstName" class="form-control text-center" placeholder="First Name" type="text">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="lastName-addon"><i class="fa fa-user"></i></span>
<input id="lastName" class="form-control text-center" placeholder="Last Name" type="text">
</div>
</div>
</div>
</div>
</div>
、あなたがあなたのページ(sまでFontAwesome CSSの参照リンクを追加する必要があります。
<div id="page" class="container" style="border:solid">
<div class="row" style="padding-top: 12px;"></div>
<div class="row">
<div class="col-md-6 col-md-offset-3 text-center">
<div class="form-group">
<input id="firstName" class="form-control text-center" placeholder="First Name" type="text">
</div>
<div class="form-group">
<input id="lastName" class="form-control text-center" placeholder="Last Name" type="text">
</div>
</div>
</div>
</div>
私は問題が何であるか分かりません。 http://www.bootply.com/q65r9cWljQ – j08691
ラベルとコントロールは左揃えでそのまま表示されます。私はそれらを中心にしたい。 – PrivateJoker
あなたのためにのみ、私はあなたのコードとその中心を試してみます。 –