仿知乎静态登陆页面

此文,书生带来了一个仿知乎的静态的登录页面

跟上一篇仿京东商城登录页面一样

可以根据自己的需求对代码进行修改

下面,展示代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>知乎 - 有问题,就会有答案</title>
    <link rel="icon" href="img/zh/icon.ico">
    <link rel="stylesheet" href="css/reset.css">

    <style>
        /*重置样式*/
        a {
            text-decoration: none;
            color: inherit;
        }

        /*设置页面的背景*/
        body {
            background-image: url("img/zh/bj.png");
            background-size: 101% 143.5%;
            background-color: #B8E5F8;
            background-attachment: fixed;
        }

        .page-icon-box {
            width: 100%;
            text-align: center;
            padding-top: 43px;
            margin-bottom: 24px;
        }

        .page-icon {
            display: inline-block;2
            width: 128px;
            height: 81px;
        }

        .form-box {
            width: 352px;
            height: 295px;
            padding: 0px 24px 84px;
            background-color: #fff;
            margin: auto;
            border-radius: 3px 3px 0px 0px;
            overflow: hidden;
            position: relative;
        }

        .login-select-box {
            height: 60px;
            width: 100%;
            display: flex;
        }

        .login-select-box > div {
            display: inline-block;
            height: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 24px;
        }

        .login-active {
            height: 56px;
            border-bottom: 4px #0066FF solid;
            font-weight: 700;
        }

        .form-box form input:not([type='submit']) {
            width: 352px;
            padding: 12px 0px;
            border: none;
            outline: none;
            border-bottom: 1px #EBEBEB solid;
            margin: 10px 0px;
            font-size: 15px;
        }

        .input-box {
            margin-top: 5px;
        }

        .input-box > form > div {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
        }

        .input-box > form > div > a {
            font-size: 14px;
            color: #175199;
        }

        .input-box > form > div > a:last-of-type {
            color: #8590A6;
        }

        .input-box > form > div > a:hover {
            color: #657086;
        }

        .form-box form > input[type='submit'] {
            width: 100%;
            height: 36px;
            margin-top: 40px;
            background-color: #0066FF;
            color: #fff;
            border: none;
            outline: none;
            border-radius: 3px;
            font-size: 15px;
        }

        .form-box form > input[type='submit']:hover {
            background-color: #0055ee;
        }

        .agreement-box {
            font-size: 13px;
            color: #808080;
            padding-top: 40px;
        }

        .hr {
            margin-top: 8px;
            border-bottom: 1px #EBEBEB solid;
        }

        .social-login-box {
            width: 352px;
            height: 60px;
            padding: 0px 24px;
            background-color: #fff;
            margin: auto;
            display: flex;
            justify-content: space-between;
            color: #8590A6;
        }

        .social-login-box > div:first-of-type {
            height: 60px;
            display: flex;
            align-items: center;
        }

        .social-login-box > div:last-of-type {
            height: 60px;
            display: flex;
        }

        .social-login-box > div:last-of-type > div > a {
            height: 60px;
            display: flex;
            align-items: center;
            margin-left: 10px;
        }

        .social-login-box img {
            width: 16px;
            height: 16px;
            padding-right: 4px;
        }

        .bottom-btn-box {
            width: 352px;
            height: 60px;
            padding: 0px 24px;
            margin: auto;
            background-color: #F6F6F6;
            display: flex;
            justify-content: space-between;
            border-radius: 0px 0px 3px 3px;
        }

        .bottom-btn-box img {
            width: 23px;
            height: 23px;
            border-radius: 4px;
            margin-right: 10px;
        }

        .bottom-btn-box a {
            height: 60px;
            display: flex;
            align-items: center;
            color: #0066FF;
        }

        .bottom-menu-box {
            color: #fff;
            font-size: 12px;
            width: 100%;
            text-align: center;
            margin-top: 50px;
            padding-bottom: 25px;
        }

        .bottom-menu-box > div > *:not(:last-child):after {
            content: " ·";
        }

        .bottom-menu-box > div {
            margin-top: 3px;
        }

        .bottom-menu-box > div:nth-child(2) {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #code {
            position: absolute;
            right: 0px;
            top: 0px;
            width: 60px;
            height: 60px;
        }

        #zd {
            border-top: 30px rgba(0, 0, 0, 0) solid;
            border-bottom: 30px #fff solid;
            border-left: 30px #fff solid;
            border-right: 30px rgba(0, 0, 0, 0) solid;
            position: absolute;
            right: 0px;
            top: 0px;
        }

        #password-is-show {
            position: absolute;
            width: 23px;
            right: 10px;
            top: 17px;
        }

        .bottom-menu-box a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="page-icon-box">
    <img src="img/zh/zhihu.png" class="page-icon" alt="">
</div>
<div class="form-box">
    <img id="code" src="img/zh/code.png" alt="">
    <a href="#"><span id="zd"></span></a>
    <div class="login-select-box">
        <div>免密码登录</div>
        <div class="login-active">密码登录</div>
    </div>
    <div class="input-box">
        <form action="#" method="post">
            <input type="text" name="userName" placeholder="手机号或邮箱" autocomplete="off">
            <div style="position: relative">
                <input type="password" name="password" placeholder="密码">
                <img src="img/zh/yj.png" id="password-is-show">
            </div>
            <div>
                <a href="#">海外手机号登录</a>
                <a href="#">忘记密码?</a>
            </div>
            <input type="submit" value="登录">
        </form>
    </div>
    <div class="agreement-box">
        未注册手机验证后自动登录,注册即代表同意
        <a href="#">《知乎协议》</a>
        <a href="#">《隐私保护指引》</a>
    </div>
    <div class="hr"></div>
</div>
<div class="social-login-box">
    <div>社交账户登录</div>
    <div>
        <div>
            <a href="#">
                <img src="img/zh/wechat.png">
                <div>微信</div>
            </a>
        </div>
        <div>
            <a href="#">
                <img src="img/zh/qq.png">
                <div>QQ</div>
            </a>
        </div>
        <div>
            <a href="#">
                <img src="img/zh/wb.png">
                <div>微博</div>
            </a>
        </div>
    </div>
</div>
<div class="bottom-btn-box">
    <div>
        <a href="#">
            <img src="img/zh/kt.png">
            <span>开通机构号</span>
        </a>
    </div>
    <div>
        <a href="">
            <img src="img/zh/zh.png">
            <span>知乎App</span>
        </a>
    </div>
</div>
<div class="bottom-menu-box">
    <div>
        <a href="#">知乎专栏</a>
        <a href="#">圆桌</a>
        <a href="#">发现</a>
        <a href="#">移动应用</a>
        <a href="#">联系我们</a>
        <a href="#">来知乎工作</a>
        <a href="#">注册机构号</a>
        <a href="#">Investor Relations</a>
    </div>
    <div>
        <span>© 2021 知乎</span>&nbsp;
        <a href="#">京 ICP 证 110745 号</a>&nbsp;
        <a href="#">京 ICP 备 13052560 号 - 1</a>&nbsp;
        <img src="img/zh/jc.png" alt="">&nbsp;
        <a href="#">京公网安备 11010802020088 号</a>&nbsp;
        <a href="#">出版物经营许可证</a>&nbsp;
        <span>互联网药品信息服务资格证书(京)- 非经营性 - 2017 - 0067</span>&nbsp;
    </div>
    <div>
        <a href="#">侵权举报</a>
        <a href="#">网上有害信息举报专区</a>
        <a href="#">儿童色情信息举报专区</a>
        <span>违法和不良信息举报:010-82716601</span>
    </div>
</div>
</body>
</html>

接下来就是仿知乎登录页面的效果图:

接下来,水一点字

人生如棋,仅有舍弃一些棋子,才能换得一生的平静和幸福。

上帝是公平的,冬天里失去的东西,到春天的时候会还给你;

这方面舍弃的东西,在另一方面会补给你。

舍与得,其实是一个无限循环的圈。越敢舍,越能得;

越愿舍,越易得。舍得之间,人生迥异,以舍为得,妙用无穷! 

希望大家能从书生文章里能有点收获。(相关资源可从我的资源下载,免费,可能因为系统原因暂时看不见我的资源,可以先收藏或关注,不迷路)

文章结束,浪客书生,以键证道。

  • 2
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值