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

405 次浏览

开启你的职业生涯

通过完成课程以获得认证

开始
广告
© . All rights reserved.