vue记住密码

编程入门 行业动态 更新时间:2024-10-28 06:22:37

vue记住<a href=https://www.elefans.com/category/jswz/34/1771279.html style=密码"/>

vue记住密码

 <div class="checkbox-login"><input type="checkbox" id="defaults"  v-model="loginForm.rememberMe" /><label class="label" for="defaults">记住密码</label></div>

.checkbox-login {position: relative;
}
//去除原生样式
input[type="checkbox"] {display: none;
}
/*input 选中前的样式*/
input[type="checkbox"] + label::before {content: ""; /*不换行空格*/display: inline-block;width: 17px;height: 17px;background: url("../assets/login/noselect.png") no-repeat center center;background-size: cover;position: absolute;top: 2px;left: 0;
}
/*input 选中后的样式 */
input[type="checkbox"]:checked + label::before {width: 17px;height: 17px;background: url("../assets/login/select.png") no-repeat center center; /*背景图的写法是生效的*/background-size: cover;border: none;
}
//字体标签
::v-deep label {font-weight: 400;font-size: 14px;color: #3d4050;margin-left: 24px;
}

更多推荐

vue记住密码

本文发布于:2023-12-07 03:16:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1669916.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码   vue

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!