Disabled

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

描述 (Description)

disabled类用于禁用滑块。 您需要将disabled类添加到slider div

例子 (Example)

以下示例演示如何在Foundation中使用disabled slider

<html>
   <head>
      <title>Slider Disabled</title>
      <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
   </head>
   <body>
      <div class = "slider disabled" data-slider data-initial-start = "45">
         <span class = "slider-handle" data-slider-handle role = "slider" tabindex = "1"></span>
         <span class = "slider-fill" data-slider-fill></span>
         <input type = "hidden">
      </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>