我是新來的,我試圖將兩張照片並排放置在引導行中,但列似乎沒有工作。我究竟做錯了什麼?預先感謝您的任何幫助!Bootstrap列不工作
<div class="row" style="width: 100%">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<img src="https://heavyeditorial.files.wordpress.com/2016/02/david-joseph.jpg?quality=65&strip=all&strip=all/200x200" class="img-thumbnail img-responsive" alt="David Joseph">
<p class="caption">David Joseph was unarmed when he was fatally shot by Austin police. <em>Photo credit: APD</em></p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<img src="http://assets.nydailynews.com/polopoly_fs/1.2523996.1454945162!/img/httpImage/image.jpg_gen/derivatives/article_400/observer9n-3-web.jpg" class="img-thumbnail img-responsive" alt="Antronie Scott">
<p class="caption">San Antonio police fatally shot Antronie Scott, who was also unarmed. <em>Photo credit: SAPD</em></p></div>
</div>
其中在關閉div標籤爲行,爲什麼你使用寬度:100%? –
添加jsfiddle,我們更容易編輯您的代碼:) –
https://jsfiddle.net/#&togetherjs=LLL9w4hbrT – ERM