<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>登录页面</title>
	<style>
		body {
			background-color: #f2f2f2;
		}
		h1 {
			text-align: center;
			color: #333;
			margin-top: 50px;
			margin-bottom: 50px;
		}
		form {
			background-color: #fff;
			padding: 30px;
			border-radius: 5px;
			box-shadow: 0 0 10px rgba(0,0,0,0.2);
			width: 400px;
			margin: 0 auto;
		}
		label {
			display: block;
			font-size: 16px;
			color: #333;
			margin-bottom: 10px;
		}
		input[type="text"], input[type="password"] {
			width: 100%;
			padding: 10px;
			border-radius: 5px;
			border: none;
			margin-bottom: 20px;
			font-size: 16px;
			box-sizing: border-box;
		}
		input[type="submit"] {
			background-color: #4CAF50;
			color: #fff;
			padding: 10px 20px;
			border: none;
			border-radius: 5px;
			font-size: 16px;
			cursor: pointer;
			margin-top: 20px;
		}
		input[type="submit"]:hover {
			background-color: #3e8e41;
		}
	</style>
</head>
<body>
	<h1>用户登录</h1>
	<form>
		<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>
写一个HTML的登陆页面

原文地址: https://www.cveoy.top/t/topic/bKg6 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录