Stacking

优质
小牛编辑
133浏览
2023-12-01

描述 (Description)

可以使用.stacked类或.stack-for-small类仅为小屏幕堆叠按钮。

例子 (Example)

以下示例演示如何在Foundation中stack buttons

<html>
   <head>
      <title>Button Stacking</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <div class = "stacked button-group">
         <a class = "button">One</a>
         <a class = "button">Two</a>
         <a class = "button">Three</a>
         <a class = "button">Four</a>
         <a class = "button">Five</a>
         <a class = "button">Six</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>