div+css实现简洁登录表单页面代码

代码语言:html

所属分类:表单美化

代码描述:div+css实现简洁登录表单页面代码

代码标签: div css 简洁 登录 表单 页面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<style>
    body {
    background: url("//repo.bfw.wiki/bfwrepo/image/656b2c1d29965.png");
    background-size: cover;
    background-repeat: no-drop;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
  color:#1a73e8;
  text-decoration: none;
  padding:10px;
}

a:hover {
  color:#1354a9;
  background-color:#1a73e826;
}

.login-form {
  padding:40px 40px 60px 20px;
  text-align:center;
  border:10px;  
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-form:hover {
  transition: 0.8s;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.input-container {
  width: 300px;
  position: relative;
  margin:30px;
}

.label {
    position: absolute;
    left: 10px;
    top: 14px;
    transition: all 0.3s;
    padding: 0 2px;
    z-index: 1;
    color: #5f6368;
}

.text-input {
    padding: 1rem;
    width: 100%;
    height: 100%;
    border: 0.5px solid #b3b3b3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 500;
    outline: none;
    transition: all 0.3s;
    color: black;
}

.label::before {
    content: "";
    height: 5px;
    background: transparant;
    position: absolute;
    left: 0px;
    top: 10px;
    width: 100%;
    z-index: -1;
}

.text-input:focus {
    border: 2px solid #1a73e8;
}

.tex.........完整代码请登录后点击上方下载按钮下载查看

网友评论0