<div style="padding:20px;"> <h2>步长</h2> <p>默认情况下,滑块滑动的增加减少的数量为 "1"。可以通过添加 <code>data-options="step: <em>num</em>;"</code> 属性来修改长值。实例中设置为 25:</p> <span id="mySlider"></span> <div class="range-slider" data-slider="" data-options="display_selector: #mySlider; step: 25;"> <span class="range-slider-handle"></span> <span class="range-slider-active-segment"></span> </div> </div> <!-- 初始化 Foundation JS --> <script> $(document).ready(function() { $(document).foundation(); }) </script>