写一个带下拉框的登录页面
时间: 2023-05-26 17:01:16 浏览: 127
博主推荐html下拉框树形(附好看的登录界面)
5星 · 资源好评率100%
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<style>
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px solid #ccc;
padding: 20px;
}
.form input {
padding: 10px;
margin: 5px;
width: 100%;
box-sizing: border-box;
border: none;
border-radius: 5px;
}
.form select {
padding: 10px;
margin: 5px;
width: 100%;
box-sizing: border-box;
border: none;
border-radius: 5px;
}
.form button {
background-color: #2196F3;
color: #fff;
padding: 10px;
margin: 5px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.form button:hover {
background-color: #0b7dda;
}
</style>
</head>
<body>
<div class="container">
<h1>Login Page</h1>
<form class="form">
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<select name="domain">
<option value="" selected disabled>Select domain</option>
<option value="gmail.com">@gmail.com</option>
<option value="outlook.com">@outlook.com</option>
<option value="yahoo.com">@yahoo.com</option>
</select>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>
阅读全文