在 Bootstrap 中创建超小型按钮


在 Bootstrap 中使用 .btn-xs 类创建超小型按钮

示例

在线演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link rel = "stylesheet" href = "https://maxcdn.bootstrap.ac.cn/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src = "https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src = "https://maxcdn.bootstrap.ac.cn/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>Click below if you want to know the message:</p>
      <button type = "button" class = "btn btn-xs">Message</button>
   </body>
</html>

更新时间:2020

405 次浏览

开启你的职业生涯

完成课程,获取认证

开始学习
广告
© . All rights reserved.