H5前端开发学习笔记——0x16实战:163注册界面

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>163注册界面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" href="main.css" />
    <script src="main.js"></script>
    <style>
        /* 首先,清空默认边距 */

        blockquote,
        body,
        code,
        dd,
        div,
        dl,
        dt,
        fieldset,
        form,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        input,
        legend,
        li,
        ol,
        p,
        pre,
        td,
        textarea,
        th,
        ul {
            margin: 0;
            padding: 0;
        }

        /* 清空一些标签的默认样式 */

        /* 
利用body设置整个界面的文字信息
例如:文字大小 文字字体 文字颜色
*/

        a {
            text-decoration: none;
            font-size: 12px;
            color: #ccc;
        }

        .header {
            height: 80px;
            width: 960px;
            margin: 0 auto;
            box-sizing: border-box;
            padding-top: 28px;
        }

        .header .logo {
            width: 644px;
            height: 27px;
            background: url("images/glb_v2.png") no-repeat 0 0;
            float: left;
        }

        .header .logo a {
            width: 130px;
            height: 27px;
            display: inline-block;
        }

        .header .links {
            height: 27px;
            width: 200px;
            float: right;
            text-align: right;
            font-size: 12px;
            color: #ccc;
            line-height: 27px;
        }

        .header .links a {
            line-height: 27px;
        }

        .centent {
            width: 960px;
            height: 600px;
            margin: 0 auto;
        }

        .centent .top {
            width: 960px;
            height: 38px;
            background: url("images/line-center.png") repeat-x;
        }

        .centent .left {
            width: 960px;
            height: 38px;
            background: url("images/line-left.png") no-repeat left 0;
        }

        .centent .right {
            width: 960px;
            height: 38px;
            background: url("images/line-right.png") no-repeat right 0;
        }

        .centent .right h1 {
            font-family: "宋体";
            color: white;
            font-size: 12px;
            line-height: 38px;
            text-indent: 2em;
        }

        .centent .bottom {
            width: 960px;
            height: 562px;
        }

        .centent .bottom .article {
            width: 642px;
            height: 562px;
            float: left;
            padding-top: 50px;
            padding-left: 80px;
            box-sizing: border-box;
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            border-top: none;
        }

        .centent .bottom .article .articleTop {
            width: 560px;
            height: 60px;
        }

        .centent .bottom .article .articleTop ul {
            width: 412px;
            height: 34px;
            list-style: none;
            line-height: 34px;
            text-align: center;
            background: url("images/tab.jpg") no-repeat 0 0;
        }

        .centent .bottom .article .articleTop ul li {
            float: left;
            width: 137px;
            height: 34px;
            line-height: 34px;
        }

        .centent .bottom .article .articleBottom {
            width: 560px;
            height: 373px;
        }

        .centent .bottom .article .articleBottom p {
            font-size: 12px;
            margin-left: 80px;
            line-height: 28px;
        }

        .centent .bottom .article .articleBottom .line {
            width: 413px;
            height: 28px;
        }

        .centent .bottom .article .articleBottom .line input {
            width: 214px;
            height: 24px;
        }

        .centent .bottom .article .articleBottom .line select {
            width: 90px;
            height: 24px;
        }

        .centent .bottom .article .articleBottom .line span {
            float: left;
            height: 28px;
            width: 60px;
            font-size: 12px;
            line-height: 28px;
            text-align: right;
        }

        .centent .bottom .article .articleBottom .line span .star {
            color: red;
            width: 0;
        }

        .centent .bottom .article .articleBottom .line div {
            float: right;
            height: 28px;
            width: 333px;
        }

        .centent .bottom .article .articleBottom .line .sp1 {
            width: 324px;
        }

        .centent .bottom .article .articleBottom .line .sp2 {
            float: left;
            /* 在企开中,想让多个盒子顶部对齐,就让他们浮动起来 */
        }

        .centent .bottom .article .articleBottom .line img {
            width: 100px;
            height: 28px;
            float: left;
            margin-left: 10px;
        }

        .centent .bottom .article .articleBottom .sp3 {
            font-size: 12px;
            color: gray;
        }

        .centent .bottom .article .articleBottom input[type=submit] {
            width: 119px;
            height: 37px;
            background: url("images/glb_v2.png") no-repeat -144px -360px;
            border: none;
            font-size: 20px;
            color: white;
            margin-left: 80px;
            margin-top: 20px;
        }

        .centent .bottom .aside {
            width: 318px;
            height: 562px;
            background-color: #f5f5f5;
            float: right;
            padding-top: 105px;
            padding-left: 45px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-top: none;
        }

        .footer {
            width: 960px;
            height: 48px;
            margin: 0 auto;
        }

        .footer p {
            font-size: 12px;
            color: #ccc;
            text-align: center;
            line-height: 48px;
        }
    </style>
</head>

<body>
    <!-- 头部 开始 -->
    <div class="header">
        <div class="logo">
            <a href="#" title="网易163免费邮"></a>
            <a href="#" title="网易126免费邮"></a>
            <a href="#" title="网页Yeah.net免费邮"></a>
        </div>
        <div class="links">
            <a href="#">了解更多</a>
            |
            <a href="#">反馈意见</a>
        </div>
    </div>
    <!-- 头部 结束 -->

    <!-- 内容 开始 -->
    <div class="centent">
        <!-- 内容顶部 开始 -->
        <div class="top">
            <div class="left">
                <div class="right">
                    <h1>欢迎注册无限量的网易邮箱!邮箱地址可以登录使用其他网易旗下产品。</h1>
                </div>
            </div>
        </div>
        <!-- 内容顶部 结束 -->

        <!-- 内容底部 开始 -->
        <div class="bottom">
            <div class="article">
                <div class="articleTop">
                    <ul>
                        <li>注册字母邮箱</li>
                        <li>注册手机邮箱</li>
                        <li>注册VIP邮箱</li>
                    </ul>
                </div>
                <div class="articleBottom">
                    <div class="line">
                        <span>
                            <span class="star">*</span>邮件地址</span>
                        <div>
                            <input type="text" value="建议使用手机号注册">@
                            <select name="" id="">
                                <option value="163.com">163.com</option>
                                <option value="126.com">126.com</option>
                                <option value="lnj.net">lnj.net</option>
                            </select>
                        </div>
                    </div>
                    <p>6~18个字符,可以使用字母、数字、下划线,需要字母开头</p>
                    <div class="line">
                        <span>
                            <span class="star">*</span>密码</span>
                        <div>
                            <input type="password" value="" class="sp">
                        </div>
                    </div>
                    <p>6~16个字符,区分大小写</p>
                    <div class="line">
                        <span>
                            <span class="star">*</span>确认密码</span>
                        <div>
                            <input type="password" value="" class="sp1">
                        </div>
                    </div>
                    <p>请再次填写密码</p>
                    <div class="line">
                        <span>
                            <span class="star">*</span>手机号码</span>
                        <div>
                            <input type="number" value="" class="sp1">
                        </div>
                    </div>
                    <p>忘记密码时,可以通过手机号码快速找回密码</p>
                    <div class="line">
                        <span>
                            <span class="star">*</span>验证码</span>
                        <div>
                            <input type="text" value="" class="sp2">

                            <img src="images/vcode.jpg" alt="">
                            </select>
                        </div>
                    </div>
                    <p>请填写图中字符,不区分大小写</p>
                    <p>
                        <input type="checkbox"> 同意
                        <a href="#" class="sp3">“服务条款”</a>和
                        <a href="#" class="sp3">“隐私权保护和个人信息利用政策”</a>
                    </p>
                    <input type="submit" value="立即注册" class="sp4">
                </div>
            </div>
            <div class="aside">
                <img src="images/wy_right.jpg" alt="">
            </div>
        </div>
        <!-- 内容底部 结束 -->
    </div>
    <!-- 内容 结束 -->

    <!-- 尾部 开始 -->
    <div class="footer">
        <p>
            <a href="#">关于网易</a>
            <a href="#">关于网易免费邮</a>
            <a href="#">邮箱官方博</a>
            <a href="#">客户服务</a>
            <a href="#">隐私政策</a>
            | 网易公司版权所有 © 1997-2018
        </p>
    </div>
    <!-- 尾部 结束 -->
</body>

</html>
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容