凹显风登录页面(1)

HTML代码:

​
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>凹显风登录页面</title>
    <link rel="stylesheet" href="./Bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/凹显风登录页面.css">
</head>

<body>
    <div class="container">
        <h1>登录</h1>
        <div class="box">
            <div class="box-input">
                <span class="glyphicon glyphicon-user"></span>
                <input type="text" placeholder="用户名">
            </div>

            <div class="box-input">
                <span class="glyphicon glyphicon-eye-close"></span>
                <input type="password" placeholder="密码">
            </div>

            <button>登录</button>
            <div class="sign">
                还没用户?
                <a href="#">立即注册</a>
            </div>
        </div>
    </div>
</body>

</html>

​

css代码:

​
* {
    margin: 0;
    padding: 0;
}

body {
    background: url(../image/star.jpg) no-repeat;
    /* 缩放背景图片以完全覆盖背景区,可能背景图片部分看不见 */
    background-size: cover;
}

.container {
    width: 450px;
    height: 310px;
    background-color: rgba(0, 0, 0, .4);
    border-radius: 5%;
    margin: 10% auto;
    text-align: center;
}

.container h1 {
    color: aliceblue;
    padding: 20px 0;
}

.box .box-input,
.box button {
    margin-bottom: 15px;
}

.box .box-input span {
    width: 5px;
    margin-right: -15px;
}

.box .box-input input {
    width: 180px;
    padding-left: 35px;
    outline: none
}

.box .box-input input:hover {
    background-color: rgb(209, 211, 213);
    box-shadow: 5px 2px rgba(0, 0, 0, .1);
}

.box button {
    width: 150px;
    height: 25px;
    border: 0;
    border-radius: 10px;
    background: -webkit-linear-gradient(left top, rgb(44, 163, 190), rgb(215, 160, 166));
    color: aliceblue;
    font-weight: 600;
    /*  中间间隔 */
    letter-spacing: 5px;
}

.box .sign {
    color: #ccc;
    font-size: 12px;
}

​

登录页面:

 

 

背景图片:

 

 

Bootstrap 前端开发框架 使用步骤:

&0.先到官网下载

&1.创建bootstrap文件夹结构(复制bootstrap相关文件夹)

&2.创建html骨架结构

&3.引入相关样式文件

&4.书写内容

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值