登录界面效果
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Transparent Material Login Form</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css'> <style> @import url(https://fonts.googleapis.com/css?family=Lato); body { display: flex; height: 100vh; justify-content: center; align-items: center; background: url("https://i.loli.net/2019/10/18/buDT4YS6zUMfHst.jpg") 0/cover fixed; font-family: "Lato"; } .login-form { display: flex; flex-direction: column; align-items: center; padding: 3em; background: rgba(0, 0, 0, 0.8); color: white; border-radius: 10px; box-shadow: 0 15px 20px rgba(0, 0, 0, 0.5); } .login-form h1 { font-size: 2.5em; margin-bottom: 0.3em; padding: 12px 0; } .login-form .form-field { position: relative; font-size: 20px; border-bottom: 1px solid white; margin: 20px 0 8px 0; transition: 0.4s; } .login-form .form-field::after { position: absolute; content: ""; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0