0

在我正在进行的项目中,我遇到了 Foundation 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>&pound;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>&pound;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 中进行这项工作?

谢谢!格雷厄姆

4

1 回答 1

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>
于 2015-05-19T09:24:45.683 回答