可显示密码原文的密码输入框效果代码
代码语言: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.81675% 26.36695%, 87.29462% 26.25723%, 87.7684% 26.38091%, 88.23487% 26.73144%, 88.69081% 27.30221%, 89.13302% 28.08664%, 89.55826% 29.07816%, 89.96332% 30.27017%, 90.345% 31.6561%, 90.70007% 33.22935%, 91.02531% 34.98333%, 91.31751% 36.91147%, 91.57346% 39.00718%, 91.78992% 41.26386%, 91.95983% 43.6181%, 92.0791% 46.00012%, 92.14904% 48.39386%, 92.17099% 50.78321%, 92.14625% 53.15209%, 92.07615% 55.48444%, 91.96199% 57.76415%, 91.80511% 59.97518%, 91.6068% 62.10138%, 91.3684% 64.12672%, 91.09122% 66.0351%, 90.77657% 67.81044%, 90.42577% 69.43666%, 90.04014% 70.89766%, 89.621% 72.17737%, 89.16967% 73.25972%, 88.69881% 74.10923%, 88.22241% 74.70556%, 87.74366% 75.05532%, 87.26579% 75.16504%, 86.79201% 75.04135%, 86.32555% 74.6.........完整代码请登录后点击上方下载按钮下载查看
网友评论0