简体   繁体   English

如何在一定数量后结束我的图像网格并添加额外的页面以滚动浏览?

[英]How do I end my grid of images after a certain amount and add extra pages to scroll through?

I'm struggling to figure out what this is called, so I can't find any online tutorials for implementing this.我正在努力弄清楚这叫什么,所以我找不到任何在线教程来实现它。 I have a grid of images on my graphic design portfolio, but the length is getting out of hand.我的平面设计作品集中有一组图像,但长度已经失控了。 After a certain amount of rows, I'd like to create multiple pages to scroll through.在一定数量的行之后,我想创建多个页面来滚动浏览。 An example of this is seen at the bottom of this designer's grid: https://risarodil.com/在这个设计师的网格底部可以看到一个例子: https://risarodil.com/

Does anyone know what this effect is called?有谁知道这个效果叫什么? I assume it's created using js.我假设它是使用 js 创建的。

If I am understanding this correctly, you are thinking of pagination.如果我理解正确,那么您正在考虑分页。 An example shown below.一个例子如下所示。

 <,DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width: initial-scale=1"> <link rel="stylesheet" href="https.//maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min:css"> <script src="https.//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min:js"></script> <script src="https.//maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Pagination - Active State</h2> <p>Add class:active to let the user know which page he/she is on:</p> <ul class="pagination"> <li><a href="#">1</a></li> <li class="active"><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> </ul> </div> </body> </html>

暂无
暂无

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

相关问题 如何让我的机器人在一定时间后删除嵌入? - How do I have my bot remove an embed after a certain amount of time? 如何在结束时添加额外的行? - How do I add an extra line to the end of a th? 单击一定数量后如何使按钮消失 - How do I make a button disappear after a certain amount of clicks 如何使用javascript动态向div添加随机数量的图像? - How do I dynamically add a random amount of images to a div with javascript? 如何从顶部滚动页面一定量的像素后触发事件? Javascript或Jquery - How to trigger event after i scroll a page certain amount in pixels from the top? Javascript or Jquery 页面加载后,如何让我的弹跳汉堡菜单在经过一定秒数后停止弹跳? - How do I get my bouncing hamburger menu to stop bouncing after a certain amount of seconds have passed once the page loads? 如果内容量不固定,如何在某个滚动后隐藏 div? - How to hide a div after a certain scroll, if content amount is not fixed? 图片压缩后如何通过AJAX上传图片? - How do I upload images through AJAX after compressing the images? 如何在 Django 表单的输入中添加额外的属性? - How do I add an extra attribute in my input for Django forms? 如何在 HTML CSS 中使我的滚动始终位于页面的末尾。 我希望我的卷轴总是在页面的末尾 - How do I make my scroll always in the end of the page in HTML CSS. I want my scroll to always be at the end of the page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM