我认为像这样规模...... 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
非常感谢,这确实工作 –