Select Menus

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

描述 (Description)

您可以使用选择菜单将许多选项加入到一个菜单中。

例子 (Example)

以下示例演示了在Foundation中使用select menu

<html>
   <head>
      <title>Form Select Menus</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <form>
         Select your car:
         <select>
            <option value = "Rolls-Royce Wraith">Rolls-Royce Wraith</option>
            <option value = " Lamborghini Huracan"> Lamborghini Huracan</option>
            <option value = "Bentley Flying Spur">Bentley Flying Spur</option>
            <option value = "Porsche 911 Turbo S">Porsche 911 Turbo S</option>
         </select>
      </form>
      <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>