<分区>
假设我有一个类似 this: 的输入
<input type="number" step="1">
当您将鼠标悬停在文本框上时,滚动条会出现在数字输入的右侧。我怎样才能让它始终可见?
标签 javascript html css
最佳答案
input::-webkit-inner-spin-button {
opacity: 1;
}
<input type="number" step="1">
关于javascript - 如何在使用 CSS 输入的数字中默认显示步进增量条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54758600/