今天小编就为大家分享一篇vue 验证码界面实现点击后标灰并设置div按钮不可点击状态,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
1、先看看效果图
未点击获取验证码的按钮状态
点击后的不可点击状态
2、代码实现
<div class="my-code"> <div class="my-code-get" id="new_yan"> <span>Get Captcha</span><span>{{ count }} s</span></div></div> .my-input{ text-align: left; display: block; width: 400px; height: 35px; padding: 3px; margin: 20px calc(50% - 200px) 20px calc(50% - 200px); background:none; outline:none; border:0px; border-bottom: 2px solid #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: 0 auto 20px 0; 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: 0 auto 20px calc(50% - 200px); background:none; outline:none; border:0px; border-bottom: 2px solid #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: 2px solid #0F996B; border-bottom-left-radius: 1px; border-bottom-right-radius: 1px; } .huise{ background-color: #dcdcdc !important; col<p>本文来源gao!%daima.com搞$代*!码9网(</p>or: black; }
以上这篇vue 验证码界面实现点击后标灰并设置div按钮不可点击状态就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持gaodaima搞代码网。
以上就是vue 验证码界面实现点击后标灰并设置div按钮不可点击状态的详细内容,更多请关注gaodaima搞代码网其它相关文章!