Command to leave scrollbar Fixed

Asked

Viewed 66 times

3

I wonder if you have any css commands to make the scroll of type[number] fixed because it only appears when the mousse is on top. I wanted you to stay the whole time with the two locks.

inserir a descrição da imagem aqui

1 answer

1

Tested in Chrome and Firefox:

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {  
   opacity: 1;
}
<input type="number">

  • thanks a lot, it worked, but only work on Chrome?

  • In firefox is working too!

  • Just doesn’t work on IE and Edge

  • In Edge I’m not sure, but type="number" in IE does not display arrows, right?!

  • Exactly, I tested the 5 browsers (Chrome, Safari, Opera, IE and Edge) and only IE and Edge that doesn’t work

  • ok, no problem.. the website audience uses more Chrome thank you

  • @n. You are welcome!

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.