Foundation - 按鈕組大小調整



描述

可透過 .tinysmalllarge 等標準按鈕調整按鈕組大小。

示例

以下示例演示如何在 Foundation 中調整按鈕組大小

<html>
   <head>
      <title>Button Group Sizing</title>
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">
   </head>

   <body>
      <div class = "small button-group">
         <a class = "button">Small Button</a>
         <a class = "button">Small Button</a>
         <a class = "button">Small Button</a>
      </div>

      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>

      <script>
         $(document).ready(function() {
            $(document).foundation();
         })
      </script>
   </body>
</html>

輸出

讓我們執行以下步驟,瞭解以上給定的程式碼如何工作 −

  • 儲存上述給定的 html 程式碼 button_group_sizing.html 檔案。

  • 在瀏覽器中開啟此 HTML 檔案,輸出如下所示。

foundation_basic_controls.htm
廣告
© . All rights reserved.