使用 Bootstrap 的 next 類將連結右對齊


在 Bootstrap 中使用 .next 類將連結右對齊。你可以嘗試執行以下程式碼來實現 .next 類

示例

線上示例

<!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>

更新於: 2020-06-12

133 次瀏覽

開啟你的 職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.