My first code--login interface

2017-09-08

照着我看的书,敲了几个例子。这是一本进阶的书,一边看一边有很多疑问,但是不觉间有了一个整体的统观。

以下是我的第一个小任务--登录界面

先上图:


<!DOCTYPE html>

<html lang="en">

    <head>
        <meta charset="UTF-8">
        <title>登录</title>
        <link href="css/index.css" rel="stylesheet">
        <style>
            body {
                margin: 0;
                padding: 0;
                width: auto;
            }
            
            h2 {
                text-align:center;
                line-height:400px;
                 /*{text-align:justify;}*/
            }
            
            div {
                border: 1px solid #a1a1a1;
                border-radius: 25px;
                padding: 25px 40px;
                width: 100px;
                height: 200px;
            }
            
            div.wrap {
                width: 300px;
                height: 200px;
                position: absolute;
                left: 50%;
                top: 50%;
                margin: -100px 0 0 -150px
            }
            
            /*.title {
                width: 60px;
                height: 22px;
                line-height: 22px;
                float: left;
                text-align: justify;
                text-justify: inter-ideograph; /*为了兼容IE*/
                text-align-last: justify;/* ie9*/
                -moz-text-align-last: justify;/*ff*/
                -webkit-text-align-last: justify;/*chrome 20+*/
            }
            
            .title:after {
                content: ".";
                display: inline-block;
                width: 100%;
                overflow: hidden;
                height: 0;
            }
            
            .maohao {
                line-height: 22px;
                width: 10px;
                float: left;
            }
            
            .detail {
                float: left;
                width: 220px;
                line-height: 22px;
                white-space: pre-wrap;
                word-break: break-all;
            }
            
            #justify {
                width: 300px;
                height: auto;
                font-size: 13px;*/
            }
        </style>
    </head>

    <body>
        <h2>至于信者</h2>
        
        
        
        <div class="wrap">

            <p>用 户 名 :<input type="text" placeholder="你的手机号/用户名"></p>

            <p>密 码 :<input type="password" placeholder="输入密码"></p>
            <button>登录</button>

            <a href="#" class="auto-login"> <input type="checkbox">记住密码 </a>

        </div>

    </body>

</html>
不是100%的原创,卡壳了我会上网搜和查书

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值