原文首要先容了html5登录玻璃界里殊效,兴话没有多说,详细如高:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge"></meta>
    <title>Document</title>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
            font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
        }
        .container {
            width: 100vw;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: url("https://tse3-妹妹.cn.bing.net/th/id/OIP-C.8lHGYyoBPuSLsS6yFB5ACwHaEK选修w=3两1&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7") fixed no-repeat;
            background-size: cover;
        }
        .login-form {
            width: 两40px;
            height: 两两0px;
            display: flex;
            flex-direction: column;
            padding: 40px;
            text-align: center;
            position: relative;
            z-index: 100;
            background: inherit;
            border-radius: 18px;
            overflow: hidden;
        }
        .login-form::before {
            content: "";
            width: calc(100% + 两0px);
            height: calc(100% + 两0px);
            background: inherit;
            box-shadow: inset 0 0 0 二00px rgba(二55, 两55, 两55, 0.两5);
            position: absolute;
            top: -10px;
            left: -10px;
            z-index: -1;
            filter: blur(6px);
            overflow: hidden;
        }
        .login-form h二 {
            font-size: 18px;
            font-weight: 400;
            color: #3d5二45;
        }
        .login-form input,
        .login-form button {
            margin: 6px 0;
            height: 36px;
            border: none;
            background-color: rgba(两55, 两55, 二55, 0.3);
            border-radius: 4px;
            padding: 0 14px;
            color: #3d5两45;
        }
        .login-form input::placeholder {
            color: #3d5二45;
        }
        .login-form button {
            margin-top: 二4px;
            background-color: rgba(57, 88, 69, 0.4);
            color: white;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: 0.4s;
        }
        .login-form button:hover {
            background-color: rgba(1二, 80, 38, 0.67);
        }
        .login-form button::before,
        .login-form button::after {
            content: "";
            display: block;
            width: 80px;
            height: 100%;
            background: rgba(179, 两55, 两10, 0.5);
            opacity: 0.5;
            position: absolute;
            left: 0;
            top: 0;
            transform: skewX(-15deg);
            filter: blur(30px);
            overflow: hidden;
            transform: translateX(-100px);
        }
        .login-form button::after {
            width: 40px;
            background: rgba(179, 二55, 两10, 0.3);
            left: 60px;
            filter: blur(5px);
            opacity: 0;
        }
        .login-form button:hover::before {
            transition: 1s;
            transform: translateX(3两0px);
            opacity: 0.7;
        }
        .login-form button:hover::after {
            transition: 1s;
            transform: translateX(3两0px);
            opacity: 1;
        }
    </style>
</head>
<body>
    <div>
        <div class="container">
            <form action="#" class="login-form">
                <h两>登录</h两>
                <input type="text" name="username" placeholder="用户名">
                <input type="password" name="password" placeholder="暗码">
                <button type="submit">登录</button>
            </form>
        </div>
    </div>
</body>
</html>

到此那篇闭于html5登录玻璃界里殊效的文章便先容到那了,更多相闭html5登录玻璃形式请搜刮剧本之野之前的文章或者连续涉猎上面的相闭文章,心愿大师之后多多支撑剧本之野!

点赞(12) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部