使用 Bootstrap 的 previous 类实现链接左对齐

bootstrapweb developmentcss framework更新于 2026/2/4 22:36:17

使用 Bootstrap 中的 .previous 类实现链接左对齐。您可以尝试运行以下代码来实现 .previous 类 −

示例

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h3>Answers</h3>
      <br>
         <ul class = "pager">
            <li class = "previous"><a href = "#">← Older</a></li>
            <li class = "next"><a href = "#">Newer →</a></li>
         </ul>
   </body>
</html>

相关文章