[英]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.