jQuery Mobile 表单滑动条
作者:本站编辑 发布时间:2015-11-24 来源:本站原创
点击数:
使用以下属性来规定限制:
max - 规定允许的最大值
min - 规定允许的最小值
step - 规定合法的数字间隔
value - 规定默认值
提示: 如果你想在按钮中显示进度的值可以添加 data-show-value="true" 属性:
实例
<input type="range" data-show-value="true">
拨动开关
波动开关通常用于 on/off 或 true/false 按钮:
我们可以使用 <input type="checkbox"> 元素并指定 data-role 为 "flipswitch" 来创建开关:
实例
<form method="post" action="demoform.php">
<label for="switch">切换开关:</label>
<input type="checkbox" data-role="flipswitch" name="switch" id="switch">
</form>