请帮我写一个HTML的登陆页面
<!DOCTYPE html>
<html>
<head>
<title>登陆页面</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
form {
background-color: #ffffff;
border: 1px solid #cccccc;
padding: 20px;
max-width: 500px;
margin: 0 auto;
margin-top: 50px;
}
h1 {
text-align: center;
color: #333333;
}
input[type="text"], input[type="password"] {
padding: 10px;
margin-bottom: 20px;
border: none;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
font-size: 16px;
color: #333333;
background-color: #f2f2f2;
outline: none;
}
input[type="submit"] {
padding: 10px 20px;
background-color: #0099ff;
color: #ffffff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="submit"]:hover {
background-color: #0080ff;
}
</style>
</head>
<body>
<form action="" method="post">
<h1>登陆页面</h1>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
<input type="submit" value="登陆">
</form>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/coTU 著作权归作者所有。请勿转载和采集!