高颜值html登录界面
时间: 2023-10-10 19:12:39 浏览: 43
以下是一个高颜值的HTML登录界面的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>登录界面</title>
<style>
body {
background: #f2f2f2;
font-family: Arial, sans-serif;
}
.container {
width: 300px;
margin: 100px auto;
background: #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.container h2 {
text-align: center;
margin-bottom: 20px;
}
.container input[type="text"],
.container input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
}
.container button {
width: 100%;
padding: 10px;
background: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
.container button:hover {
background: #0056b3;
}
.container .register {
text-align: center;
margin-top: 20px;
}
.container .register a {
color: #007bff;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<h2>登录</h2>
<input type="text" placeholder="账号">
<input type="password" placeholder="密码">
<button>Login</button>
<div class="register">
没有账号?<a href="#">注册</a>
</div>
</div>
</body>
</html>
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.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)