写HTML的登陆见面
<!DOCTYPE html>
<html>
<head>
<title>登录页面</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
<pre><code> .container {
width: 300px;
margin: 0 auto;
margin-top: 150px;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
h2 {
text-align: center;
margin-bottom: 20px;
}
label {
display: block;
font-weight: bold;
margin-bottom: 10px;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
margin-bottom: 20px;
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #4CAF50;
border: none;
color: #fff;
font-weight: bold;
cursor: pointer;
border-radius: 5px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</code></pre>
</head>
<body>
<div class="container">
<h2>登录</h2>
<form>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<pre><code> <label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<input type="submit" value="登录">
</form>
</div>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/i5hm 著作权归作者所有。请勿转载和采集!