我對Bootstrap相當陌生,我試圖製作一個簡單的表單,其中的所有元素都在屏幕上的一行中。我的表單的代碼如下所示:輸入左側的引導輸入標籤(而不是頂部)
<form class="form-horizontal">
<fieldset>
<div class="form-container">
<div class="form-group">
<label>Search by:</label>
<input class="form-control" type="text">
</div>
<div class="form-group">
<label>Something:</label>
<input class="form-control" type="text">
</div>
</div>
</fieldset>
</form>
默認情況下,我的輸入字段的標籤出現在輸入字段中。我希望它們位於輸入字段的左側。我已經在Google上搜索並檢查瞭如何實現這一點,但沒有發現我找到的解決方案(我嘗試將類添加到表單並更改它們的CSS,並嘗試使用引導程序的表單內聯功能)。
有誰知道我怎麼能讓窗體看起來如何我想看看?
RTM https://getbootstrap.com/docs/3.3/css/#形式在線 – j08691