h5 好看的登陆界面代码
时间: 2023-06-23 08:49:42 浏览: 80
以下是一个简单的好看的登录界面的 HTML/CSS 代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<style>
body {
background-color: #f3f3f3;
font-family: Arial, sans-serif;
}
.container {
width: 400px;
margin: 0 auto;
margin-top: 100px;
background-color: #fff;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
border-radius: 5px;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #333;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="container">
<h1>Login</h1>
<form>
<input type="text" placeholder="Username">
<input type="password" placeholder="Password">
<input type="submit" value="Login">
</form>
</div>
</body>
</html>
```
你可以将这段代码保存为一个 HTML 文件,然后在浏览器中打开它,就可以看到一个简单而好看的登录界面了。