使用 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 style = "background: orange;">
      <div class = "btn-group btn-group-lg">
         <button type = "button" class = "btn btn-default">One</button>
         <button type = "button" class = "btn btn-default">Two</button>
      </div>
      <div class = "btn-group btn-group-sm">
         <button type = "button" class = "btn btn-default">Three</button>
         <button type = "button" class = "btn btn-default">Four</button>
      </div>
      <div class = "btn-group btn-group-xs">
         <button type = "button" class = "btn btn-default">Five</button>
         <button type = "button" class = "btn btn-default">Six</button>
      </div>
   </body>
</html>

更新時間:2020 年 6 月 12 日

113 次瀏覽

開啟你的 職業生涯

完成課程後獲取認證

開始
廣告
© . All rights reserved.