给我写一个html文件实现一个QQ登录网页
时间: 2024-05-20 07:18:19 浏览: 7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QQ登录</title>
<style>
body{
background-color: #f5f5f5;
}
.container{
width: 400px;
height: 300px;
background-color: white;
margin: 0 auto;
margin-top: 100px;
border: 1px solid #e5e5e5;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
padding: 20px;
box-sizing: border-box;
}
.title{
text-align: center;
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
}
.input-wrap{
margin-bottom: 20px;
}
.input-wrap label{
display: block;
margin-bottom: 5px;
font-size: 14px;
}
.input-wrap input{
width: 100%;
height: 30px;
padding: 5px;
border: 1px solid #e5e5e5;
border-radius: 3px;
box-sizing: border-box;
font-size: 16px;
}
.btn{
width: 100%;
height: 40px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
font-size: 18px;
cursor: pointer;
}
.btn:hover{
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<div class="title">QQ登录</div>
<form action="" method="post">
<div class="input-wrap">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
</div>
<div class="input-wrap">
<label for="password">密码:</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
</div>
<button type="submit" class="btn">登录</button>
</form>
</div>
</body>
</html>
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_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)
![](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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)