CSS: Create iOS style Pin Password box

后端 未结 6 2296
轮回少年
轮回少年 2021-02-14 03:19

I want to create a html5 input that looks like the iOS enter Pin (on the lock screen).... with 4 input boxes.

How do i achieve this?

6条回答
  •  感动是毒
    2021-02-14 03:50

    To keep the style clean, I would suggest you to create 4 input boxes.

    Write a small script to focus the next input box when user enters character in the current input box.

提交回复
热议问题