写一个用户登录的HTML页面,用流行样式
时间: 2024-05-31 08:07:36 浏览: 2
<!DOCTYPE html>
<html>
<head>
<title>用户登录</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<style>
body {
background-color: #F6F7FB;
font-family: 'Montserrat', sans-serif;
}
.container {
margin-top: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
padding: 30px;
width: 400px;
}
.card i {
color: #7F00FF;
font-size: 80px;
margin-bottom: 20px;
}
.card h1 {
font-size: 28px;
margin-bottom: 20px;
text-align: center;
}
.card input[type=text], input[type=password] {
border: none;
border-bottom: 2px solid #7F00FF;
margin-bottom: 20px;
padding: 10px;
width: 100%;
}
.card input[type=submit] {
background-color: #7F00FF;
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
font-size: 18px;
padding: 10px;
width: 100%;
}
.card input[type=submit]:hover {
background-color: #5F00DF;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<i class="fas fa-user"></i>
<h1>用户登录</h1>
<form>
<input type="text" placeholder="用户名"><br>
<input type="password" placeholder="密码"><br>
<input type="submit" value="登录">
</form>
</div>
</div>
</body>
</html>
相关推荐
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.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)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)