Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
188 views
in Technique[技术] by (71.8m points)

html - Lightbox2 adds an extra image at the end of full screen image set

I've just noticed that Lightbox2 (https://github.com/lokesh/lightbox2) is duplicating or adding extra images at the end of the full screen version of the image, everything else works fine. When viewing I click on the next image arrow for the next image and when I reach the last one (image_5.jpg) there shouldn't be any more "next" button/option, but there is and if I click it, it shows once again the last image.

<div class="galleryContainer">
  <div class="gallery_image">
    <a class="example-image-link" href="./images/studio/image_1.jpg" data-lightbox="studio-set"><img class="studio-image" src="./images/studio/image_1.jpg" alt=""/>
    <a class="example-image-link" href="./images/studio/image_2.jpg" data-lightbox="studio-set"><img class="studio-image" src="./images/studio/image_2.jpg" alt=""/>
    <a class="example-image-link" href="./images/studio/image_3.jpg" data-lightbox="studio-set"><img class="studio-image" src="./images/studio/image_3.jpg" alt=""/>
    <a class="example-image-link" href="./images/studio/image_4.jpg" data-lightbox="studio-set"><img class="studio-image" src="./images/studio/image_4.jpg" alt=""/>
    <a class="example-image-link" href="./images/studio/image_5.jpg" data-lightbox="studio-set"><img class="studio-image" src="./images/studio/image_5.jpg" alt=""/>
  </div>

<script src="./scripts/lightbox-plus-jquery.js"></script>
question from:https://stackoverflow.com/questions/65601194/lightbox2-adds-an-extra-image-at-the-end-of-full-screen-image-set

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...