用html制作登陆的旅游网站
时间: 2023-09-20 18:12:33 浏览: 50
好的,下面是一个简单的用HTML制作登陆的旅游网站的示例代码:
```
<!DOCTYPE html>
<html>
<head>
<title>旅游网站</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
.container {
margin: auto;
width: 80%;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
input[type="text"], input[type="password"] {
width: 100%;
height: 40px;
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
border: none;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
font-size: 16px;
}
input[type="submit"] {
background-color: #008CBA;
color: #fff;
border: none;
border-radius: 5px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
font-size: 16px;
padding: 10px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #005b8e;
}
</style>
</head>
<body>
<div class="container">
<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>
</div>
</body>
</html>
```
以上代码会创建一个包含用户名和密码输入框以及登录按钮的简单登录表单。你可以根据需要进行自定义和修改。