简体   繁体   English

jQuery-分页内div的图像

[英]Jquery - pagination for images inside div's

I created simple image gallery and I'm looking for script or solution to make pagination for my images inside div's. 我创建了简单的图片库,我正在寻找脚本或解决方案来对div中的图片进行分页。

At first, it's my code. 首先,这是我的代码。

CODEPEN.IO CODEPEN.IO

My structure of gallery looks like this: 我的画廊结构如下所示:

<div class="container">

 <div class="main-gallery">
  <div class="a-gallery">
   <div class="intem-gallery">
    <div class="image-gallery">
     IMAGE 
    </div>
   </div>
  </div>
 </div>

</div>

I found THIS jquery pagination script but it's works on different structure, like this. 我找到了这个 jquery分页脚本,但是它可以在不同的结构上工作,像这样。

<div class="parent">
 <div class="child">
  IMAGE
 </div>
</div>

So can this script handle it with my case or maybe someone have better solution because I need to keep eg. 因此,此脚本可以针对我的情况进行处理,还是有人可以提供更好的解决方案,因为我需要保留例如。 4 images per site. 每个站点4张图片。 I would like to have something that will work with my structure. 我想要一些适合我的结构的东西。

look at this jQuery Pagination plugin or this one 10+ jQuery Pagination Plugins . 看一下这个jQuery Pagination插件或这个10多个jQuery Pagination插件 ist very easy to use. ist非常易于使用。 i hope it hepls 我希望它会帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM