web之qq邮箱登录界面

我们可以用css来做这个登录的表格

具体的完整代码实现如下:

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>登录qq邮箱</title>
<style type="text/css">
    * {
        padding: 0;
        margin: 0;
    }

    .content {
        width: 1100px;
        height: 500px;
    }

    .content .text h1 {
        color: #1d5494;
        margin-bottom: 20px;
    }

    .content .text p {
        font-size: 13px;
    }

    .content .login {
        float: left;
        width: 350px;
        height: 400px;
        border: 1px solid #1d5494;
    }

    .content .login .sidebar {
        border-bottom: 1px solid #1d5494;
        height: 50px;
        line-height: 50px;
    }

    .content .login ul li {
        list-style-type: none;
        display: block;
        height: 50px;
        font-size: 16px;
        color: gray;
    }

    .content .login ul .tab1 {
        float: left;
        margin-left: 45px;
        cursor: pointer;
    }

    .content .login ul .tab2 {
        float: right;
        margin-right: 45px;
        cursor: pointer;
    }

    .content .login .acount {
        margin-top: 40px;
        margin-left: 27px;
        width: 280px;
        height: 35px;
    }

    .content .login .password {
        margin-top: 15px;
        margin-left: 27px;
        width: 280px;
        height: 35px;
    }

    .content .login .checkbox {
        float: left;
        margin-top: 30px;
        margin-left: 30px;
        width: 20px;
        height: 20px;
        border: 1px solid black;
        background: white;
    }

    .content .login p {
        margin-top: 30px;
        float: left;
    }

    .content .login .submit {
        margin-left: 27px;
        margin-top: 10px;
        width: 280px;
        height: 40px;
        background: cornflowerblue;
        border: 1px solid cornflowerblue;
        font-size: 16px;
        color: white;
        cursor: pointer;
    }

    .content .login .forget {
        float: left;
        margin-top: 80px;
        margin-left: 30px;
    }

    .content .login .new {
        float: right;
        margin-top: 80px;
        margin-right: 30px;
    }

    .content .login a {
        color: #1d5494;
        text-decoration: none;
    }

    .content .login a:hover {
        text-decoration: underline;
    }

    .footer a {
        color: #1d5494;
        text-decoration: none;
    }

    .footer a:hover {
        text-decoration: underline;
    }
</style>
<body>
<div class="content">

    <div class="login">
        <ul class="sidebar">
            <li class="tab1">微信登录</li>
            <li class="tab2">QQ登陆</li>
        </ul>
        <input type="text" placeholder="支持QQ号/邮箱/手机号登录" class="acount"/><br>
        <input type="password" placeholder="QQ密码" class="password"/><br>
        <input type="checkbox" class="checkbox"/>
        <p>下次自动登录</p><br>
        <input type="submit" value="登录" class="submit">
        <nav>
            <a href="#" class="forget">忘了密码?</a>
            <a href="#" class="new">注册新账号</a>
        </nav>
    </div>
</div>
</body>
</html>

效果图:
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值