Bootstrap 類 btn-xs 的用法


使用 btn-xs Bootstrap 類建立超小按鈕。你可以嘗試執行以下程式碼來實現 btn-xs 類

示例

即時演示

<!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>
      <div class = "btn-group">
         <button type = "button" class = "btn btn-default dropdown-toggle btn-xs" data-toggle = "dropdown">
            Subject
            <span class = "caret"></span>
         </button>
         <ul class = "dropdown-menu" role = "menu">
            <li><a href = "#">Programming</a></li>
            <li><a href = "#">Web Dev</a></li>
            <li><a href = "#">Database</a></li>
            <li><a href = "#">Networking</a></li>
         </ul>
      </div>
   </body>
</html>

更新於:2020 年 06 月 12 日

瀏覽量:144

啟動你的事業

完成課程,獲得認證

開始
廣告
© . All rights reserved.