Skip to content

Commit

Permalink
Create README.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Shux1sh authored Nov 29, 2023
1 parent aa64b5b commit bf615fc
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions README.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="en">
<!-- 婷婷老师 -->
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>

body { /*铺满背景图*/
display: flex;
background: url('https://lmg.jj20.com/up/allimg/4k/s/01/210924155T04M5-0-lp.jpg') no-repeat;
background-size: 100% ;
justify-content: center; /* 主轴,横轴居中*/
align-items: center; /* 副轴 竖轴居中*/
}

#login_box {
width: 350px;
height: 400px;
background-color:rgba(48, 44, 44, 0.493);/*rgba颜色模式 红绿蓝 最后是透明度1是不透明0是全透明*/
margin: auto;
margin-top: 10%; /*上边的外边距*/
text-align: center;
border-radius: 10px; /*圆角边框弧度*/
padding: 50px 50px; /*内边距*/

}

h2 { /*login字体变色 上边外边距调整*/
color: #ffffff90;
text-align: center;
}
#input_box{
display: flex;
flex-direction: column; /* 把主轴从横的改成竖的*/
justify-content: space-around; /* 均分布局空间 */
align-items: center;
height: 100px;
}
input{
border: 0; /*边框为0 对于浏览器来讲还是渲染了 但是我没去掉边框*/
width: 60%;
font-size: 15px;
color: #fff;
background: transparent; /*透明色*/
border-bottom: 2px solid #fff; /*边框底部画个细线*/
padding: 5px 10px;
outline: none; /*给表单双击选择的时候的边框去除样式*/
margin-top: 10px; /*上边的外边距*/
}

button {/*按钮设置*/
margin-top: 50px;
width: 250px;
height: 30px;
border-radius: 10px;
border: 0;/*边框为0 对于浏览器来讲还是渲染了 但是我没去掉边框*/
color: #fff;
text-align: center;
line-height: 30px;
font-size: 15px;
background-color: darkcyan;
}


</style>
</head>

<body>
<div id="login_box">
<h2>LOGIN</h2>
<form action="" id="input_box">
<input type="text" placeholder="请输入用户名">
<input type="password" placeholder="请输入密码">
</form>
<button>登&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录</button><br>
</div>
</body>
</html>

0 comments on commit bf615fc

Please sign in to comment.