我的第一个html 学习

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        body {
            background-color: cornflowerblue;
        }

        a {
            text-decoration: navajowhite;
        }

        ol,
        ul,
        li {
            list-style: none;
        }

        .regmain {
            width: 338px;
            height: 385px;
            margin: 50px auto;
            padding: 66px 35px 60px 37px;
            background-color: white;
        }

        .d-close {
            width: 36px;
            height: 36px;
            background-color: rebeccapurple;
            border: 1px solid;
            border-radius: 50%;

            background-image: url('img/x.jpg');
            background-repeat: no-repeat;
            background-position: center;
            float: right;
            margin: -80px -60px 0px 0px;
        }

        .to-login-register-tit {
            font-size: 18px;
            color: #282d32;
            font-weight: normal;
        }

        .to-login-register-tit>a {
            float: right;
            font-size: 14px;
            color: #4e75fd;
        }

        .new-login-item {
            width: 100%;
            height: 42px;
            margin-top: 22px;
        }

        .new-login-item>.regmobil,
        .new-login-item>.mima {
            width: 100%;
            height: 100%;
            margin: 0px;
            padding: 0px;
            border: 1px solid;
            border-radius: 3px;
            font-size: 14px;
            outline: none;
            text-indent: 1em;
        }

        .new-login-item>.yanzhengma {
            text-indent: 1em;
        }

        .new-login-item>.yanzhengma {
            width: 202px;
            height: 100%;

        }

        .new-login-item>.yanzhengmabtn {
            float: right;
            width: 121px;
            height: 42px;
            border: 1px solid;
            border-radius: 3px;
            text-align: center;
            background-color: azure;
        }

        .new-login-item>.zhuce {
            width: 100%;
            height: 100%;
            line-height: 44px;
            text-align: center;
            background-color: #4e75fd;
            color: white;
            display: block;
        }

        .otherLogin {
            margin-top: 20px;
        }

        .img-login>li {
            width: 33%;
            height: 44px;
            float: right;
            margin-top: 20px;
            text-align: center;
        }


        .img-login li a {
            height: 44px;
            width: 54px;

            background-image: url('img/x.jpg');
            background-repeat: no-repeat;
            background-position: center;
            text-align: right;
            display: block;
        }
    </style>
</head>

<body>
    <div class="regmain">
        <div class="d-close">

        </div>
        <div class="reglable">
            <h3 class="to-login-register-tit">注册创客学院
                <a href="" class="tologin">登录</a>
            </h3>
        </div>
        <form>
            <div class="new-login-item">
                <input type="text" class="regmobil" placeholder="请输入手机号">
            </div>
            <div class="new-login-item">
                <input type="text" class="yanzhengma" placeholder="验证码">
                <input type="button" class="yanzhengmabtn" value="请输入验证码">
            </div>
            <div class="new-login-item">
                <input type="text" class="mima" placeholder="密码">
            </div>
            <div class="new-login-item">
                <a href="http://www.baidu.com" class="zhuce">注册</a>
            </div>
            <div class="otherLogin">
                其他方式登录
            </div>
            <ul class="img-login">
                <li>
                    <a href="" class="weixin"></a>
                </li>
                <li>
                    <a href="" class="qq"></a>
                </li>
                <li>
                    <a href="" class="weibo"></a>
                </li>
            </ul>
        </form>

    </div>
</body>

</html>

 

posted @ 2018-08-02 17:15  baihong  阅读(84)  评论(0)    收藏  举报