百度登录界面CSS+HTML

3 篇文章 0 订阅

界面如下:
在这里插入图片描述
源代码:

<!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>体验CSS美容师</title>
    <link rel="stylesheet" href="css/baidu.css">
    <style>

    </style>
</head>

<body>
    <!-- 头部 begin-->
    <div id="head">
        <div id="head_logo">
            <a href="http://www.biadu.com">
                <img src="/images/baidu.gif" />
            </a>
        </div>
        <div id=head_login>
            <span>我已注册,现在就</span>
            <input type="button" value="登录" />

        </div>
    </div>
    <!-- 头部 end -->

    <!-- 导航 begin -->
    <div id="nav">
        <img src="/images/reg_hr.png" />
    </div>
    <!-- 导航 end -->

    <!-- 注册 begin-->
    <div id="register">
        <!-- 注册表单 -->
        <div id="reg_form">
            <form>

                <p><label> 用户名 <input type="text" placeholder="亲设置用户名"></label></p>
                <p><label>手机号 <input type="text" placeholder="请输入手机号"></label></p>
                <p><label for="">密码 <input type="password" placeholder="请输入密码"></label></p>
                <p><label>请输入验证码 <input type="text" placeholder="请输入验证码" style="width: 190px;"></label>
                    <button id="reg_form_msg">获取验证码</button>
                </p>

                <div id="reg_form_isCheck">
                    <input type="checkbox">
                    <span>阅读并接受<a href="#">边度用户协议</a>以及<a href="#">百度隐私权保护</a></span>
                </div>
                <div id="reg_form_btn">
                    <button>注册</button>
                </div>
            </form>
        </div>
        <div id="reg_qrcode">
            <img src="/images/qrcode.png" alt="">

        </div>
    </div>
    <!-- 注册 end -->

    <!-- 版权信息 begin -->
    <div id="copyright">
        <p></p>
    </div>
    <!-- 版权信息 end -->
</body>

</html>
#head #head_login {
    float: right;
    font-size: 10px;
    margin-top: 10px;
}
#head #head_logo {
    width: 330px;/* 宽度330px */
 /* 设置背景图片不重复并靠右 */
 background: url(../img/logo.png) right no-repeat;
 /* 设置背景的位置 y轴上移5px */
 background-position-y: -5px;
 cursor: pointer;/* 鼠标变手势 */
 float: left;/* 左浮动 */
 /* 内下间距5px 为了和导航之间保持距离 */
 padding-bottom: 5px;
}
#head #head_login input {
    width: 64px;
    height: 32px;
    background: url("../images/reg_icons.png") no-repeat 0 -48px;
    font-weight: bold;
    color: rgb(61, 61, 61);
    /*  */
}
#head #head_login {
    float: right;
    font-size: 10px;
    /* 上外边距 */
    margin-top: 20px;
}
/* 导航开始 */
#nav {
    width: 1200px;
    margin: 0 auto;

}
/* 导航end */


/* 注册begin */
#register {
    /* 宽度950px  */
    width: 950px;
    /* 上外边距是20px 左右外边距自动居中 下外边距是0px */
    margin: 20px auto 0px auto;
}
#register #reg_form {
    /* 图片靠左 */
    float: left;
    /* 文本靠右 */
    text-align: right;
    font-size: 14px;
    color: blue;
    font-weight: bold;
    
}
#register #reg_form label {
    /* 给一个右外边距 */
    margin-right: 10px;
}
#register #reg_form p input {
    height: 38px;
    width: 350px;
    /* 边框1px,实心线颜色 skyblue */
    border: 1px solid skyblue;
    font-size: 14px;
    color: blue;
    /* 首行缩进 */
    text-indent: 2em;
    /* 底外间距6px */
    margin-bottom: 6px;
}
/* 注册end */
#register #reg_form #reg_form_msg {
    height: 42px;
    width: 140px;
    /* 背景颜色 */
    background: #f7f7;
    /* 字体大小 */
    font-size: 14px;
    /* 鼠标移动变手 */
    cursor: pointer;
}
/* 鼠标移动改变样式 */
#register #reg_form #reg_form_msg:hover {
    background: slateblue;
}
#register #reg_form_isCheck {
    font-size: 10px;
    margin-right: 30px;
}
/* 去除所有横线 */
#register #reg_form_isCheck a {
    text-decoration: none;
}
#register #reg_form_btn button {
    height: 50px;
    width: 352px;
    background: skyblue;
    /* 无边框 */
    border: 0;
    /* 字体颜色 */
    color: white;
    /* 字体粗细 */
    font-weight: 600px;
    /* 圆角类型 */
    border-radius: 3px;
    /* 鼠标变手势 */
    cursor: pointer;
}
#register #reg_qrcode {
    float: right;
    margin-right: -10px;
}
#copyright {
    text-align: center;
    color: skyblue;
    font-size: 12px;
    /* 设置位置 */
    margin-top: 520px;
}
  • 1
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

_努力努力再努力_

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

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

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

打赏作者

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

抵扣说明:

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

余额充值