lightbox2有时会在弹出窗口中显示集合中的最后一张图像

时间:2019-05-21 06:29:11

标签: lightbox2

我正在对每个点击的缩略图进行一些灯箱测试,其中包含一些图像集。正常,但第二组总是在图像3 of 3上弹出灯箱。不是3的1。第一组效果很好,每次都会弹出3的灯箱1。我在第二个设置的锚点上添加了ID,希望它无济于事。

    <div id="main">
                        <article class="thumb">

                              <a class="image" href="images/fulls/IMG_7979.jpg" data-lightbox="example-set" data-title="Click the right half of the image to move forward."><img class="example-image" src="images/thumbs/r_IMG_7557.jpg" alt=""/></a>
                              <a class="example-image-link" href="images/fulls/03.jpg" data-lightbox="example-set" data-title="Or press the right arrow on your keyboard."></a>
                              <a class="example-image-link" href="images/fulls/04.jpg" data-lightbox="example-set" data-title="Or press the right arrow on your keyboard."></a>

                            <h2>Sarah M.</h2>
                            <p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>                     
                        </article>
                        <article class="thumb">
                            <a class="image" href="images/fulls/03.jpg" data-lightbox="example-set2" data-title="Click the right half of the image to move forward." id="1"><img class="example-image" src="images/thumbs/r_IMG_7925-2.jpg" alt=""/></a>
                            <a class="image" href="images/fulls/IMG_7979.jpg" data-lightbox="example-set2" data-title="Or press the right arrow on your keyboard." id="2"></a>
                            <a class="image" href="images/fulls/04.jpg" data-lightbox="example-set2" data-title="Or press the right arrow on your keyboard." id="3"></a>                            
                            <h2>Makayla G.</h2>
                            <p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
                        </article>
</div>

0 个答案:

没有答案