Bootstrap btn-group 类


使用 .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 年 6 月 12 日

145 次浏览

开启您的 职业生涯

完成课程后获得认证

开始
广告
© . All rights reserved.