如何创建类似于 HTML5 输入类型的控件:支持 FF 和 IE8+ 的范围?

发布于 2025-01-08 13:02:56 字数 381 浏览 1 评论 0原文

我希望使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

君勿笑 2025-01-15 13:02:56

可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文