Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于这些滑块:http: //view.jquerymobile.com/1.3.1/dist/demos/widgets/sliders/
有没有办法将滑块旁边的数字输入框设置为只读状态?我不希望用户可以直接修改数字(他们应该只使用滑块)。
是的,将只读添加到输入标签
<input type="number" data-type="range" name="slider-1" id="slider-1" min="0" max="100" value="50" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset ui-slider-input" readonly>