css实现一个响应式大气自适应登录页面代码
代码语言:html
所属分类:响应式
代码描述:css实现一个响应式大气自适应登录页面代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css"> <style> @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap"); *, *:after, *:before { box-sizing: border-box; } body { font-family: "Open Sans", sans-serif; } .wrapper { width: 100vw; min-height: 100vh; background-color: #f7f6fb; background: linear-gradient(45deg, #8356c9, #FFF); padding: 30px 15px; display: flex; align-items: center; justify-content: center; } .login { width: 100%; max-width: 800px; background-color: #FFF; display: flex; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); } .login .login-form { flex-grow: 1; flex-shrink: 0; flex-basis: auto; max-width: 50%; background-color: #fff; padding: 60px 45px; } @media only screen and (max-width: 767.98px) { .login .login-form { max-width: 100%; } } @media only screen and (max-width: 575.98px) { .login .login-form { padding: 40px 20px; } } .login .login-form .logo { text-decoration: none; color: #333; display: flex; align-items: center; margin-bottom: 30px; font-size: 1.4rem; } .login .login-form .logo .logo-img { margin-right: 5px; } .login .login-form .logo .logo-text { font-weight: bold; } .login .login-form .lo.........完整代码请登录后点击上方下载按钮下载查看
网友评论0