如何使HTML5滑块(INPUT TYPE ='范围')工作在Firefox [英] How do I make html5 slider (input type='range') work in Firefox
问题描述
我尝试使用HTML5元素,它是
I try to use html5 element, which is
<input type='range' step='1' min='-300' max='-1' />
有被认为是一个滑动件。它的工作原理在Chrome中。但它不Firefox8工作。
我查了一下,在html5test.com,它说,火狐8部分支持范围型。它支持最小和最大的属性,而不是一步到位的属性。然后,我抹去一步到位的属性,如
It is supposed to be a slider. It works in Chrome. But it does not work in Firefox8. I checked that in "html5test.com", it says firefox 8 partially supports the "range" type. It supports "min" and "max" attribute, but not "step" attribute. Then I erase the "step" attribute, like
<input type='range' min='-300' max='-1' />
为什么仍然不能正常工作?
Why it still does not work?
什么办法让它工作吗?
推荐答案
这是不支持在Firefox 23版本对于4及以上版本中的Javascript实现之前,请参阅的http:// frankyan.com/labs/html5slider/ 。
This is not supported in Firefox before version 23. For a Javascript implementation in versions 4 and up, please see http://frankyan.com/labs/html5slider/ .
根据上面链接的错误报告乔纳森·瓦特的评论,支持已被添加到Firefox的开发分支,并与23版的发布。
According to Jonathan Watt's comment on the bug report linked above, support has been added to the Firefox development branch and was released with version 23.
这篇关于如何使HTML5滑块(INPUT TYPE ='范围')工作在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!