Pagination
优质
小牛编辑
124浏览
2023-12-01
描述 (Description)
分页是一种将内容划分为一系列相关页面的导航。
例子 (Example)
以下示例演示了在基础中使用pagination -
<!doctype html>
<head>
<meta charset = "utf-8" />
<meta http-equiv = "x-ua-compatible" content = "ie = edge" />
<meta name = "viewport" content = "width = device-width, initial-scale = 1.0" />
<title>Pagination</title>
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
</head>
<body>
<h2>Pagination Example</h2>
<ul class = "pagination">
<li class = "disabled">Previous</li>
<li class = "current">1</li>
<li><a href = "#">2</a></li>
<li><a href = "#">3</a></li>
<li><a href = "#">4</a></li>
<li class = "ellipsis"></li>
<li><a href = "#">12</a></li>
<li><a href = "#">13</a></li>
<li><a href = "#">Next</a></li>
</ul>
</body>
</html>