Bootstrap 点击打开图片作为一个画廊引导

pvcm50d1  于 2022-12-08  发布在  Bootstrap
关注(0)|答案(1)|浏览(118)

我有一小段HTML代码,如下所示

<div class="comment-div">
   <h2>Murtaza Ali <span>15 Aug 2016</span></h2>
   <p>I think if you managed. </p>
   <img src="https://www.google.com/images/srpr/logo6w.png" alt="Smiley face">
</div>
                       
<div class="comment-div">
   <h2>Suraj Shukla <span>15 Aug 2016</span></h2>
   <p>I think if you managed. </p>
   <img src="https://www.google.com/images/srpr/logo6w.png" alt="Smiley face">
</div>
                       
<div class="comment-div">
   <h2>Suraj <span>15 Aug 2016</span></h2>
   <p>I think if you managed. </p>
   <img src="https://www.google.com/images/srpr/logo6w.png" alt="Smiley face">
 </div>
                       
<div class="comment-div">
     <h2>Suraj <span>15 Aug 2016</span></h2>
     <p>I think if you managed. </p>
     <img src="https://www.google.com/images/srpr/logo6w.png" alt="Smiley face">
</div>

现在点击图片时,我想打开一个弹出窗口,然后滑动到下一张图片。这仅适用于移动的设备,因此点击时需要滑动(左右)到下一张图片
请建议。Here's小提琴为相同。

mnowg1ta

mnowg1ta1#

请查看此链接这里是更多相关的例子与不同的影响。
http://www.jqueryscript.net/tags.php?/gallery%20lightbox/
希望对你有帮助。
谢谢

相关问题