我很難找出用bootstraps的網格系統(我可能會誤用它)來完成此操作的正確方法。引導3.0行和圖像/ div並排
我想要的是一個div,其中最左邊緣是一個圖像,其餘的內容是一個完整大小的.row到表單字段。我想我缺少一些關於bootstrap如何使用它的各種類的基本知識。
<div class="card">
<span class="f-icon glyphicon glyphicon-file pull-left"></span>
<div class="col-xs-6 col-sm-6 col-md-6">
I want this to be the first half of the remaining content
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
I want this to be the second half of the remaining content
</div>
</div>
小提琴:https://jsfiddle.net/p37bc1n0/
哎呀不對小提琴:https://jsfiddle.net/p37bc1n0/1/ – Perrin
這樣? https://jsfiddle.net/p37bc1n0/2/ –
@MichaelCoker這將工作,如果我可以依靠圖標的大小由col div確定。我試圖駕馭的只是接下來的一行 - 類似於邁克爾的解決方案上面的靜態圖像 – Perrin