我在正在研究的项目中遇到了基于Zurb的数据均衡器插件的问题。以下代码是正在发挥作用的:
<div class="row lmt" data-equalizer="listings">
<div class="small-12 medium-6 large-6 columns ">
<div class="car-listing" data-equalizer-watch="listings">
<div class="row">
<div class="small-12 medium-5 large-5 columns">
<a href="/raes-edit/used-cars/audi-a6-2.0tdi-se-177ps-model/">
<img src="/raes-edit/site/assets/files/1234/p1060436.185x0.jpg" alt="" class="img-responsive" />
</a>
</div>
<div class="small-12 medium-7 large-7 columns">
<a href="/raes-edit/used-cars/audi-a6-2.0tdi-se-177ps-model/">
<h4 class="red">Audi A6 2.0TDI SE 177Ps model<br/>Metallic Grey<br />5 Door</h4>
</a>
<div class="pricing">
<p><strong>£18700</strong><br />Saloon / Diesel</p>
</div>
</div>
</div>
<a class="view" href="/raes-edit/used-cars/audi-a6-2.0tdi-se-177ps-model/"><i class="fa fa-angle-double-right"></i></a>
</div>
</div>
<div class="small-12 medium-6 large-6 columns end">
<div class="car-listing" data-equalizer-watch="listings">
<div class="row">
<div class="small-12 medium-5 large-5 columns">
<a href="/raes-edit/used-cars/landrover-discovery-2.7-tdv6-xs-7seat/">
<img src="/raes-edit/site/assets/files/1221/p1060286.185x0.jpg" alt="" class="img-responsive" />
</a>
</div>
<div class="small-12 medium-7 large-7 columns">
<a href="/raes-edit/used-cars/landrover-discovery-2.7-tdv6-xs-7seat/">
<h4 class="red">Landrover Discovery 2.7 TDV6 XS 7SEAT<br/>Metalic Black<br />5 Door</h4>
</a>
<div class="pricing">
<p><strong>£16800</strong><br />Four Wheel Drive / Diesel</p>
</div>
</div>
</div>
<a class="view" href="/raes-edit/used-cars/landrover-discovery-2.7-tdv6-xs-7seat/"><i class="fa fa-angle-double-right"></i></a>
</div>
</div>
<div class="clearfix"></div>
</div>
它基本上不均衡。如果我删除第1行的“行”类,它可以工作,但会破坏容器边界。任何想法如何在行div中使这个工作?
谢谢! 格雷厄姆
答案 0 :(得分:1)
固定!事实证明我必须对标题变量应用一个固定的高度 - 它的混合长度将其抛弃,因此强制90px的高度将它完全对齐!
<a href="/raes-edit/used-cars/landrover-discovery-2.7-tdv6-xs-7seat/" style="height: 90px;">
<h4 class="red">Landrover Discovery 2.7 TDV6 XS 7SEAT<br/>Metalic Black<br />5 Door</h4>
</a>