开发者

HTML sliding bars?

how does one create a sliding bar using HTML? I cannot seem to 开发者_运维问答find anything in the official documentation.


HTML5 does, in fact, have support for sliders:

<input type="range" min="0" max="10" step="2" value="6">

...browsers are expected to render type="range" as a slider control. At time of writing, the latest versions of Safari, Chrome, and Opera all do this. (Sadly, the iPhone renders it as a simple text box. It doesn’t even optimize its on-screen keyboard for numeric input.) All other browsers simply treat the field as type="text", so there’s no reason you can’t start using it immediately. (diveintohtml5.ep.io)


You could use the JQuery UI Slider

(Yet another JavaScript question that is answered with JQuery)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜