Bootstrap 按鈕組類


使用 .btn-group 類來使用 Bootstrap 按鈕組類。你可以嘗試執行以下程式碼來形成按鈕組

示例

實際演示

<!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">A</button>
         <button type = "button" class = "btn btn-default">B</button>
         <button type = "button" class = "btn btn-default">C</button>
      </div>
   </body>
</html>

更新於: 2020-06-12

143 次瀏覽

開啟你的 職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.