To style a range menu, add the .form-range
class to the input element with type="range":
<label for="customRange" class="form-label">Custom range</label>
<input type="range" class="form-range" id="customRange">
Try it Yourself »
By default, the interval between the range numbers is 1. You can change it by using the step
attribute:
By default, the minimum value is 0 and maximum value is 100. You can use the min
and/or max
attribute change it:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!