使用 Bootstrap previous 類將連結左對齊


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

更新於: 12-6-2020

77 次瀏覽

開啟您的 事業

完成課程獲得認證

開始
廣告
© . All rights reserved.