Limit the number of characters in a separate input field for each character

后端 未结 4 480
说谎
说谎 2021-01-20 01:39

I have an input field and would want to give it a look and feel of a character-by-character box field (image below).

My HTML and CSS are written below. They

4条回答
  •  粉色の甜心
    2021-01-20 02:20

    Use JavaScript. When the last number is entered the cursor will be set to the first position thus the display will be correct.

    
    
    
    

提交回复
热议问题