首页 前端知识 HTML---QQ登录

HTML---QQ登录

2025-03-11 15:03:59 前端知识 前端哥 450 425 我要收藏

一,代码

二,结果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>QQ登录</title>
    <link rel="stylesheet" href="./QQ登录.css">
</head>
<body>
    <div>
        <ul class="menu">
            <li >申请接入</li>
            <li >授权管理</li>
            <li >QQ登录</li>
            <li class="you">QQ登录</li>
        </ul>
    </div>
    <div class="left">
        <h4>账号密码登录</h4><br>
        推荐使用快速安全登录,防止盗号
        <form action="#" method="post" class="denglu">
            <p>
                <input type="text" name="账号" placeholder="支持QQ号/邮箱/手机号登陆">
            </p >
            <p>
                <input type="password" name="密码" id="密码" placeholder="密码">
            </p >
            <p>
                <input type="button"  class="button" value="授权并登录">
            </p >
        </form>
    </div>
        <ul class="help">
            <li>忘记密码?</li>
            <li>注册新账号</li>
            <li>意见反馈</li>
        </ul>
    <div class="reight">
        <form action="#" method="post">
            <p>
                腾讯网将获得以下权限:<br>
            </p>
            <p>
                <input type="radio" name="按钮" id="全选">全选<br>
            </p >
            <p>
                <input type="radio" name="按钮" id="获得">获得您的昵称、头像、性别及会员信息<br>
            </p >
            <p>
                授权后表明你已同意QQ登录服务协议
            </p >
        </form>
 
    </div>
</body>
</html>
ul > li{
    list-style: none;
}
a {
    text-decoration: none;
}
 
ul.menu {
    background-color: #aac6f0;
    width: 1000px;
    height: 80px;
}
 
ul >li.you{
    width: 180px;
    height: 30px;
    font-size: 20px;
    float: left;
    text-align: center;
    margin-top: 30px;
    color: white;
    border-left: 4px solid white;
}
 
ul > li {
    width: 80px;
    height: 40px;
    float: right;
    text-align: center;
    margin-top: 30px;
    color: white;
    border-left: 1px solid white;
}
 
 
ul > li:last-child{
    border: none;
}
ul > li:nth-last-child(2){
    border: none;
}
 
div.left{
    width: 500px;
    height: 400px;
    text-align: center;
}
 
div.left > form.denglu > p > input.button{
    display: block;
    margin-top: 32px;
    padding: 11px 0;
    width: 50%;
    font-size: 14px;
    cursor: pointer;
    color: white;
    position: relative;
    left: 120px;
    background-color:#6dcd4c;
}

 
ul.help {
    color: black;
    width: 1000px;
    height: 80px;
}
div.reight{
    position: absolute;
    top: 112px;
    left: 520px;
    width: 480px;
    height: 400px;
    text-align: left;
}
 

结果:

转载请注明出处或者链接地址:https://www.qianduange.cn//article/23234.html
标签
评论
会员中心 联系我 留言建议 回顶部
复制成功!