请写一个登录页面 代码
时间: 2024-05-25 07:16:52 浏览: 14
<!DOCTYPE html>
<html>
<head>
<title>登录页面</title>
<meta charset="utf-8">
<style type="text/css">
body{
background-color: #f2f2f2;
}
.container{
margin: 0 auto;
width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px #ccc;
}
h1{
text-align: center;
font-size: 36px;
margin-bottom: 20px;
}
form{
display: flex;
flex-direction: column;
}
label{
font-size: 20px;
margin-bottom: 10px;
}
input{
padding: 10px;
font-size: 18px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
box-shadow: 0 0 5px #ccc;
outline: none;
}
.btn{
background-color: #2196F3;
color: #fff;
font-size: 20px;
padding: 10px;
border-radius: 5px;
border: none;
cursor: pointer;
box-shadow: 0 0 5px #ccc;
}
.btn:hover{
background-color: #0b7dda;
}
</style>
</head>
<body>
<div class="container">
<h1>登录页面</h1>
<form action="" method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
<input type="submit" value="登录" class="btn">
</form>
</div>
</body>
</html>
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)