技能应用:html+css
借用外部工具:取色器
使用软件:vs code
web基础作业1记录
<!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>Document</title>
</head>
<style>
* {
margin: 0;
padding: 0;
}
.container {
position: absolute;
width: 100%;
height: 100%;
background-color: #4A374A;
}
.loginBox {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
h1 {
color: white;
}
.loginText {
text-align: center;
}
.inputs {
writing-mode: vertical-lr;
margin: 10px;
}
input {
background-color: #2E2D3F;
padding-left: 10px;
height: 35px;
width: 300px;
}
button {
height: 35px;
width: 315px;
margin-left: 50%;
transform: translateX(-50%);
color: white;
background-color: #4A77D4;
}
</style>
<body>
<div class="container">
<div class="loginBox">
<div class="loginText">
<h1>Login</h1>
</div>
<div class="inputs">
<input placeholder="用户名" />
<input placeholder="密码" type="password" />
</div>
<button>登录</button>
</div>
</div>
</body>
</html>