我認爲像這樣規模...... DEMO
這需要高度尺寸從COL-MD-8類,並把它分配給圖片...
function checkWidth() {
var a=$('.col-md-8').height();
$('img').height(a);
}
checkWidth();
// Bind event listener
$(window).resize(checkWidth);
HTML部分:
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-8">
<p>Lots here...With tof text he four tiers of grids available you'e bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and o</p>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="imgAbt">
<img class="img-responsive" src="http://icons.iconarchive.com/icons/mazenl77/I-like-buttons-3a/512/Cute-Ball-Go-icon.png" />
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-8">
<p>Lots of text here...Wi8h the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a .clearfix and o</p>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="imgAbt">
<img class="img-responsive" src="http://icons.iconarchive.com/icons/mazenl77/I-like-buttons-3a/512/Cute-Ball-Go-icon.png" />
</div>
</div>
</div>
</div>
這是正確的。 Javascript是唯一的方法,儘管你的小提琴看起來不太合適,因爲圖像和文字是低於和高於對方。 – Goose
更新我的解決方案檢查它... – sheshadri
非常感謝,這確實工作 –