HTML
1<form class="form-inline"> 2 <div class="form-group"> 3 <label for="exampleInputName2">名前</label> 4 <input type="text" class="form-control" id="exampleInputName2" placeholder="Jane Doe"> 5 </div> 6 <div class="form-group"> 7 <label for="exampleInputEmail2">メール</label> 8 <input type="email" class="form-control" id="exampleInputEmail2" placeholder="jane.doe@example.com"> 9 </div> 10 <button type="submit" class="btn btn-primary">Send invitation</button> 11</form>
Bootstrap4で入力フォームを横並びで複数段表示したいのですが、formで制御は可能なのでしょうか?
実現したいレイアウトのイメージ
列1 | 列2 | 列3 | 列4 |
---|---|---|---|
名前 | テキストボックス | メール | テキストボックス |
年齢 | テキストボックス | 住所 | テキストボックス |
まず実現したいレイアウトイメージのHTMLをかくことはできますか?
可能であれば、コードの修正をお願いします。

回答2件
あなたの回答
tips
プレビュー