<div id="test3">
<img class="img2"
src="https://img2.baidu.com/it/u=3329909248,3799019568&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
/>
<img class="img2"
src="https://img2.baidu.com/it/u=3329909248,3799019568&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
/>
<img class="img2"
src="https://img2.baidu.com/it/u=3329909248,3799019568&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
/>
</div>
const photoSwipeLightbox = new PhotoSwipeLightbox({
gallery: '#test3',
children: '.img2',
pswpModule: () => PhotoSwipe
});
photoSwipeLightbox.init();
As shown above, clicking on the image can open it, but it cannot display the image!
I don't want to add wrapper, is there any way to achieve the goal??
As shown above, clicking on the image can open it, but it cannot display the image!
I don't want to add wrapper, is there any way to achieve the goal??