写一个好看的登录html
时间: 2024-01-31 07:02:32 浏览: 22
以下是一个简单的登录页面的 HTML 示例:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
<style>
/* 添加一些样式 */
.container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
}
input[type="text"],
input[type="password"] {
width: 300px;
height: 40px;
margin-bottom: 20px;
padding-left: 10px;
font-size: 18px;
}
input[type="submit"] {
width: 320px;
height: 40px;
background-color: #4CAF50;
color: white;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1>登录</h1>
<form>
<input type="text" placeholder="用户名">
<input type="password" placeholder="密码">
<input type="submit" value="登录">
</form>
</div>
</body>
</html>
```
这是一个简单的登录页面 HTML 示例,您可以根据自己的需求进行修改和完善。