六位input输入框的短信验证码(PC) jQ
完整代码直接复制下边html,注意引入js css 文件
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<script src="../js/commonJs/jquery-1.8.3.min.js"></script>
<title>六位input输入框的短信验证码(PC) </title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css"/>
<style>
/*弹框验证码*/
.ipt-fake-box {
text-align: center;
}
.input {
display: inline-block;
}
.input:last-child {
border-right: 1px solid #999;
}
input.my_input {
border-top: 1px solid #999;
border-bottom: 1px solid #999;
border-left: 1px solid #999;
width: 45px;
height: 45px;
outline: none;
font-family: inherit;
font-size: 28px;
font-weight: inherit;
text-align: center;
line-height: 45px;
color: #c2c2c2;
background: rgba(255, 255, 255, 0);
}
</style>
<script src="../js/commonJs/bootstrap.min.js">