下拉箭头(Dropdown Arrows)

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

描述 (Description)

您可以使用.dropdown类将下拉箭头添加到按钮。 它不会自动为您的按钮添加下拉功能。 要实现这一点,您必须附加Dropdown插件

例子 (Example)

以下示例演示如何向Foundation中的dropdown arrows to buttons添加dropdown arrows to buttons

<html>
   <head>
      <title>Dropdown Arrows</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <button class = "tiny dropdown button">Tiny Dropdown</button>
      <button class = "small dropdown button">Small Dropdown</button>
      <button class = "dropdown button">Dropdown</button>
      <button class = "large dropdown button">Large Dropdown</button>
      <button class = "expanded dropdown button">Expanded Dropdown</button>
      <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>