vue 验证码界面实现点击后标灰并设置div按钮不可点击状态
1、先看看效果图
未点击获取验证码的按钮状态
点击后的不可点击状态
2、代码实现
GetCaptcha
{{count}}s
.my-input{
text-align:left;
display:block;
width:400px;
height:35px;
padding:3px;
margin:20pxcalc(50%-200px)20pxcalc(50%-200px);
background:none;
outline:none;
border:0px;
border-bottom:2pxsolid#dcdcdc;
border-bottom-left-radius:1px;
border-bottom-right-radius:1px;
box-sizing:border-box;
font-family:PingFangSC-Regular;
font-size:16px;
}
.my-code{
overflow:hidden;
}
.my-code-get{
float:left;
width:120px;
height:35px;
background-color:rgb(7,187,127);
margin:0auto20px0;
line-height:35px;
font-family:PingFangSC-Regular;
color:#ffffff;
border-radius:5px;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
.my-code-get:active{
background-color:#0F996B;
}
.my-code-get:hover{
cursor:pointer;
}
.my-code-input{
float:left;
text-align:left;
display:block;
width:280px;
height:35px;
padding:3px;
margin:0auto20pxcalc(50%-200px);
background:none;
outline:none;
border:0px;
border-bottom:2pxsolid#dcdcdc;
border-bottom-left-radius:1px;
border-bottom-right-radius:1px;
box-sizing:border-box;
font-family:PingFangSC-Regular;
font-size:16px;
}
.my-code-input:focus{
border-bottom:2pxsolid#0F996B;
border-bottom-left-radius:1px;
border-bottom-right-radius:1px;
}
.huise{
background-color:#dcdcdc!important;
color:black;
}
以上这篇vue验证码界面实现点击后标灰并设置div按钮不可点击状态就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。