<style type="text/css">
* {
box-sizing: border-box;
transition: .25s ease-in-out;
}
html, body {
background-color: #bcccd2;
}
#progressive-validation {
width: 400px;
margin: 100px auto 0 auto;
}
#progressive-validation input {
display: block;
border-radius: 5px;
border: none;
background: white;
font-family: 'Microsoft YaHei','Lantinghei SC','Open Sans',Arial,'Hiragino Sans GB','STHeiti','WenQuanYi Micro Hei','SimSun',sans-serif;
font-size: 16px;
line-height: 16px;
font-weight: 200;
width: 100%;
padding: 15px;
margin: 0 0 10px 0;
opacity: .2;
outline: none;
box-shadow: 0 0 0 1px transparent;
background-image: url(images/valid.png);
background-size: 0px 0px;
background-position: right 23px;
background-repeat: no-repeat;
}
#progressive-validation input[type="submit"], #progressive-validation input[type="submit"]:valid {
background-color: #1a3e4c;
color: white;
background-image: none;
}
#progressive-validation input:focus {
box-shadow: 0 0 0 1px #00aeef;
opacity: 1 !important;
}
#progressive-validation input:enabled {
opacity: .8;
}
#progressive-validation input:valid {
background-image: url(images/valid.png);
background-size: 32px 32px;
background-position: right 10px center;
background-repeat: no-repeat;
}
</style> <form id="progressive-validation">
<input type="text" id="field1" name="Name" placeholder="请输入姓名" required />
<input type="email" id="field2" name="Email" placeholder="请输入邮箱" required disabled />
<input type="tel" pattern="[0-9]{10}" id="field3" name="Phone Number" placeholder="请输入手机号" required disabled/>
<input type="submit" id="submit" value="请依次填写正确" disabled/>
</form> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script type="text/javascript" src="js/index.js"></script>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
