前端css小练习

百度注册页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度注册页面</title>
    <link rel="stylesheet" href="./style/百度注册页面.css">
</head>
<body>
    <div id="box">
        <div id="neibox">
            <div>
                <h1>欢迎注册</h1>
                <p>已有账号?<span class="login_btn">登录</span></p>
            </div>
            <div>
                <form action="">
                    <div>
                        <label for="">用户名</label>
                    <input type="text" placeholder="请设置用户名" class="wenben">
                    </div>
                    <div>
                        <label for="">手机号</label>
                        <input type="text" placeholder="可用于登录和找回密码" class="wenben">
                    </div>
                    <div>
                        <label for="">密&emsp;码</label>
                        <input type="password" placeholder="请设置登录密码" class="wenben">
                    </div>
                    <div>
                        <label for="">验证码</label>
                        <input type="text" placeholder="请输入验证码" class="wenben yanzheng">
                        <input type="button" value="获取验证码" class="huoqu">
                    </div>
                    <div>
                        <input type="submit" value="注册" class="zhuce">
                    </div>
                    <div class="yuedu">
                        <input type="checkbox">&emsp;阅读并接受<a href="javascript:;">《百度用户协议》</a>及<a href="javascript:;">《百度隐私权保护声明》</a>
                    </div>
                </form>
            </div>
        </div>


        <div class="logo">
            <img src="./image/baidu.png" alt="">
        </div>
        <div class="text">
            <h1>用科技</h1>
            <h3>让复杂的世界更简单</h3>
        </div>
        <div class="kefy">
            <a href="http://www.baidu.com">帮助中心</a>
        </div>
    </div>
</body>
</html>

 css代码

*{
    margin: 0;
    padding: 0;
}
#box{
    width: 1600px;
    height: 700px;
    background-image: url(../image/reg_bg_min.jpg);
    background-repeat: no-repeat;
    position: relative;
}
#neibox{
    position: absolute;
    height: 550px;
    width: 480px;
    background-color: #eeeff3;
    border-radius: 10px;
    right: 200px;
    top: 80px;

}
h1{
    font-size: 50px;
    text-align: left;
    padding-top: 30px;
    padding-left: 30px;
}
p{
    color: #a5a5a5;
  padding-left: 30px;
    padding-bottom: 50px;
    text-align: left;
}
.login_btn{
    color: #476bfd;
}


form label{
    padding-left: 30px;
}
form div{
    padding-bottom: 30px;
}

.wenben{
    width: 340px;
    height: 40px;
    border-radius: 5px;
}
.yanzheng{
    width: 200px;
}
.huoqu{
    width: 130px;
    height: 42px;
    padding-left: 10px;
    background-color: #ffffff;
    border-radius: 5px;
}

.zhuce{
    background-color: #bdcefc;
    width: 400px;
    height: 50px;
    border-radius: 20px;
    margin-left: 30px;
}
.yuedu{
    font-size: 12px;
    margin-left: 60px
}
a{
    text-decoration: none;
    text-align: center;

}

.logo img{
    position: absolute;
    width: 120px;
    height: 40px;
    left: 100px;
    top: 100px;

}
.text{
    position: absolute;
    color: #ffffff;
    left: 220px;
    top: 350px;
}
h3{
    font-size: 30px;
    margin-left: 25px;
}

.kefy a{
    position: absolute;
    color: #d0d1d6;
    bottom: 100px;
    left: 100px;
    font-family: "微软雅黑";
}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_45472882

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值