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>

更新時間: 12-6-2020

143 次觀看

開啟你的 職業生涯

完成課程獲得認證

開始吧
廣告
© . All rights reserved.