高级网页登陆页面HTML代码
时间: 2023-11-17 08:05:01 浏览: 44
以下是一个简单的高级网页登陆页面的HTML代码,包括输入框、按钮、背景图等:
```html
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<style>
body {
background-image: url('background.jpg');
background-size: cover;
background-position: center;
font-family: Arial, sans-serif;
color: #fff;
text-align: center;
}
h1 {
margin-top: 100px;
font-size: 36px;
text-shadow: 2px 2px #000;
}
form {
display: inline-block;
margin-top: 50px;
padding: 50px;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 10px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
input[type="text"], input[type="password"] {
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
background-color: rgba(255, 255, 255, 0.7);
width: 100%;
font-size: 18px;
}
input[type="submit"] {
padding: 10px 20px;
border-radius: 5px;
border: none;
background-color: #008CBA;
color: #fff;
font-size: 18px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #005E7A;
}
</style>
</head>
<body>
<h1>Login Page</h1>
<form action="" method="post">
<input type="text" name="username" placeholder="Username">
<br>
<input type="password" name="password" placeholder="Password">
<br>
<input type="submit" value="Login">
</form>
</body>
</html>
```
请注意,这只是一个基本的示例代码,你可以根据需要进行修改和定制。