在输入类型=“数字"上的箭头不起作用. [英] Arrows not working on input type="number"
问题描述
我用了一个简单的html
I used a simple html
<input type="number">
它显示一个带有向上和向下箭头的文本框,但这些箭头不起作用.可以使用键盘和鼠标滚动上的箭头来增加/减少该值,但是当我单击任何一个箭头时,似乎都单击了向下箭头,并且框中的值保持不变.请建议我该怎么办!
It is showing a text box with up and down arrows but the arrows are not working. The value can be incremented/decremented with arrows on keyboard and mouse scroll, but when I click on any of the arrows, it seems that the down arrow is clicked and the value in the box remains the same. Please suggest what should I do!
推荐答案
在尝试全部删除JS CSS n之后.知道"ember-view"类是造成此问题的原因.我正在使用ember,并且在其中使用输入type ="number"的div具有类"ember-view".删除该类可使文本框正常工作:).谢谢. 较早
After so much of attempts removing JS CSS n all. Come to know that "ember-view" class was creating the issue. I was using ember and the div in which I was using input type="number" was having class "ember-view". Removing that class makes the textbox work good :). Thanks. Earlier
<div class="ember-view">
<input type="number">
</div>
现在
<div>
<input type="number">
</div>
这篇关于在输入类型=“数字"上的箭头不起作用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!