Localization of input type number

后端 未结 4 1678
予麋鹿
予麋鹿 2020-11-28 10:37

I work on a web application running in Chrome, where I have inputs with type number. In my locale commas are used for decimal numbers and a space is used for th

4条回答
  •  醉梦人生
    2020-11-28 10:45

    If you don't need the up/down ticks, than follow workaround can help:

    for german comma (,) only:

    
    

    dot (.) only:

    
    

    both but don't together: (no 1000 seperator)

    
    

    otherwise number for German/Deutsch:

    
    

    and style it with:

    input[type=number] {
        -moz-appearance:textfield;
        -webkit-appearance: none;
        appearance: textfield;
    }
    

提交回复
热议问题