Is there a way to hide the new HTML5 backrest controls shown in Google Chrome & Opera?

Google Chrome now and Opera before that will show the "spin box" control next to the input box of type "number". I want to be able to style it or hide it. Are there any other ways to manage this user interface element?

EG: alt text <- This little ui element with up and down arrows. This is not the functionality and adding unfinished elements to the form that I created.

I understand that I simply can’t have a type as a "number", but it allows you to integrate anything other than a number in preventing input, and is semantically correct.

+9
user-interface input html5 google-chrome opera
Aug 20 '10 at 2:54
source share
1 answer

At the moment, the answer is no, as far as I know, anyway.

The HTML5 specification usually does not want to determine what the user interface should look like, this also applies to a function like input = number. I think there is some kind of implicitly expected workflow that looks like

login from authors / browser providers / interesting people> text specification in HTML specifications> (experimenting with the user interface)> user interface conventions (experimenting with the style)> CSS suggestions> CSS specification for the style of the new controls.

Consequently, real control over the rendering of new inputs will not be possible in the near future. Of course, browsers can, meanwhile, implement experimental CSS extensions for specific vendors.

+3
Aug 20 '10 at 15:22
source share



All Articles