我正在尝试将文本块与周围图像的高度对齐。(类似这样的http://s14.postimg.org/gqxt3rmu9/image.jpg)
这种方法vertical-align: middle with Bootstrap 2不起作用。如果有任何帮助,我将不胜感激。
<div class="row-fluid">
<div class="span6">
<div class="row-fluid">
<div class="span3">
<img src="img/gallery/1.jpg">
</div>
<div class="span6">
Text
</div>
<div class="span3">
<img src="img/gallery/1.jpg">
</div>
</div>
</div>
<div class="span6">
<div class="row-fluid">
<div class="span3">
<img src="img/gallery/1.jpg">
</div>
<div class="span6">
Text
</div>
<div class="span3">
<img src="img/gallery/1.jpg">
</div>
</div>
</div>
风格
.row-fluid > .span3, .row-fluid > .span6 {
display: inline-block !important;
vertical-align: middle !important; }