如何创建类似于 HTML5 输入类型的控件:支持 FF 和 IE8+ 的范围?
我希望使用 HTML5 的输入控件(具有范围类型)来允许我们的用户向上/向下单击并递增/递减控件内部表示的值。
查看支持的浏览器后: http://www.w3schools.com/html5/html5_form_input_types.asp ,我发现该控件在我需要支持的所有浏览器中均不受支持。
我做了一些谷歌搜索,但不确定我应该使用哪些关键字挖掘这个控件的更友好的版本。似乎所有对“输入”和“范围”这两个词的引用都立即将我指向 HTML5 版本。
有谁知道我如何在仍然支持 IE8 和所有现代浏览器的同时模拟此功能?
I was hoping to use HTML5's input control (with range type) to allow our users to click up/down and increment/decrement a value represented inside of the control.
After taking a look at supported browsers: http://www.w3schools.com/html5/html5_form_input_types.asp, I found that this control was not supported in all the browsers I need it to be supported in.
I did a bit of Googling, but am not sure what keywords I should be using to dig up a more friendly version of this control. It seems all references to the words 'input' and 'range' immediately point me to the HTML5 version.
Does anyone know how I could emulate this functionality while still supporting IE8 and all modern browsers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以使用 HTML5 输入范围 polyfill。
详细信息见此网址:
http://www. Frequency-decoder.com/2010/11/18/unobtrusive-slider-control-html5-input-range-polyfill/
另外,www.HTML5Please.com 是一个很棒的网站当陷入回退或填充疑虑时。
HTML5 Input range polyfill could be used.
Details are in this URL :
http://www.frequency-decoder.com/2010/11/18/unobtrusive-slider-control-html5-input-range-polyfill/
Also, www.HTML5Please.com is an excellent site when stuck with fall back or polyfill doubts.