CSS: Create iOS style Pin Password box

后端 未结 6 2295
轮回少年
轮回少年 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 04:01

    No need for jQuery, much cleaner IMO.

    HTML

    CSS

    form#ios input[type=password]{
        height: 50px;
        width: 40px;
        text-align: center;
        font-size: 2em;
        border: 1px solid #000;
    } 
    

    Demo

    http://jsfiddle.net/jerryhuangme/e9yhr/

提交回复
热议问题