materialize风格的登录注册表单效果代码
代码语言:html
所属分类:表单美化
代码描述:materialize风格的登录注册表单效果代码
代码标签: materialize 风格 登录 注册 表单
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/materialize.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'> <style> body { background: #222; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('//repo.bfw.wiki/bfwrepo/image/6257ea4d2cb00.png'); background-repeat: no-repeat; background-size: cover; background-position: center center; background-fill-mode: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: white; padding: 20px 25px; border: 5px solid #26a69a; width: 550px; height: auto; box-sizing: border-box; position: relative; } .col.s6 > .btn { width: 100%; } .gender-male,.gender-female { display: inline-block; } .gender-female { margin-left: 35px; } radio:required { border-color: red; } .container { animation: showUp 0.5s cubic-bezier(0.18, 1.3, 1, 1) forwards; } @keyframes showUp { 0% { transform: scale(0); } 100% { transoform: scale(1); } } .row {margin-bottom: 10px;} .ngl { position: absolute; top: -20px; right: -20px; } </style> </head> <body> <!-- partial:index.partial.html --> <div class="container"> <div class="row"> <form class="col s12" id="reg-form"> <div class="row"> <div class="input-field col s6"> <input id="first_name" type="text" class="validate" required> <label for="first_name">First Name</label> </div> <div class="input-field col s6"> <input id="last_name" type="text" class="validate" required> <label for="last_name">Last Name</label> </div> </div> <di.........完整代码请登录后点击上方下载按钮下载查看
网友评论0