可显示密码原文的密码输入框效果代码
代码语言:html
所属分类:表单美化
代码描述:可显示密码原文的密码输入框效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Space+Mono&display=swap");
body {
-webkit-box-align: center;
align-items: center;
background-color: #6fa5f5;
display: -webkit-box;
display: flex;
height: 100vh;
-webkit-box-pack: center;
justify-content: center;
}
.container {
/* background-color: #121726; */
/* background-color: #fff; */
border-radius: 10px;
height: 68px;
overflow: hidden;
position: relative;
width: 340px;
}
.hidden {
background-color: #121726;
box-sizing: border-box;
height: 100%;
padding: 0 86px 0 60px;
position: absolute;
width: 100%;
}
.lock {
left: 28px;
position: absolute;
top: 14px;
width: 17px;
}
.lock-white {
fill: white;
}
.lock-black {
fill: black;
}
.hidden-input {
background-color: transparent;
border: 0;
color: #575cba;
font-family: "Space Mono", monospace;
font-size: 18px;
height: 100%;
outline: none;
width: 100%;
}
.revealed {
background-color: #fff;
box-sizing: border-box;
-webkit-clip-path: polygon(
85.39075% 28.16254%,
85.86161% 27.31304%,
86.33801% 26.7167%,
86.816.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0