css3实现qq制作QQ登陆界面

编程入门 行业动态 更新时间:2024-10-28 12:25:18

1.代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>QQlogin</title>
    <style type="text/css">
        #myImg01 {
            margin-top: 20px;
            width: 100px;
            height: 100px;
            float: left;
            background-color: #0190ba;
            border-radius: 100px;
        }

        #myImg02 {
            margin-top: 20px;
            width: 150px;
            height: 120px;
            float: left;
        }

        #myImg03{
            margin-top: 30px;
            margin-left: 40px;
            width: 124px;
            height: 182px;
            float: left;
            text-align: right;
        }

        #myA{
           color: #0190ba;
            font-size: 14px;
            text-decoration: underline;
        }


        #loginTop {
            margin-top: 150px;
            width: 424px;
            height: 182px;
            margin-left: auto;
            margin-right: auto;
        }

        #loginBot {
            width: 424px;
            height: 182px;
            margin: auto;
        }

        #myInput {
            width: 150px;
            height: 20px;
            margin-top: 10px;
        }

        #myButton {
            margin-top: 20px;
            width: 200px;
            height: 40px;
            color: #ffffff;
            background-color: #0190ba;
            border: 0px;
        }

        /*ID选择器*/
        #myform {
            background-color: #ffffff;
            width: 300px;
            height: 120px;
        }
    </style>


</head>
<body>

<div id="loginTop">
    <img src="../img/QQloginTop.jpg" width="424" height="182"></div>
</div>
<div id="loginBot">
    <div id="myImg01">
        <img src="../img/qq.jpg" />
    </div>
    <div id="myImg02">
        <form method="get" action="#" id="myform">
            账号:<input type="text" value="295134705" id="myInput"/>
            <!-- value表示默认值 -->
           <br/>
            <br/>
            密码:<input type="password" placeholder="请输入密码" id="myInput"/>
            <!--  placeholder隐藏提示-->
            <input type="submit" id="myButton" value="登陆"/>
        </form>
    </div>
    <div id="myImg03">
        <a id="myA" href="#">忘记密码</a>
        <br/>
        <br/>
        <br/>
        <a id="myA" href="#">注册新用户</a>
    </div>
</div>
</body>
</html>

2.用到的图片

3.具体的效果

更多推荐

css3实现qq制作QQ登陆界面

本文发布于:2023-06-14 05:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1442091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:登陆界面   qq   QQ

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!