Bootstrap 按鈕組類


使用類 .btn-group 來建立按鈕組。

你可以嘗試執行下面的程式碼來實現 btn-group 類 −

示例

線上演示

<!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>
      <p>The following are the buttons:</p>
      <div class = "btn-group">
         <button type = "button" class = "btn btn-default">One</button>
         <button type = "button" class = "btn btn-default">Two</button>
      </div>
   </body>
</html>

更新於: 2020-06-12

145 次瀏覽

開啟你的 事業

完成課程並獲得認證

開始
廣告
© . All rights reserved.