请编写一个只涉及html的简洁登录注册静态页面
时间: 2023-03-28 07:04:00 浏览: 85
好的,我可以回答这个问题。以下是一个只涉及 HTML 的简洁登录注册静态页面的示例代码:
<!DOCTYPE html>
<html>
<head>
<title>登录/注册</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.">
</head>
<body>
<h1>登录/注册</h1>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="登录">
<input type="submit" value="注册">
</form>
</body>
</html>
希望这个示例对你有所帮助!
相关问题
请编写一个只涉及html的简单登录注册静态页面
好的,我可以回答这个问题。以下是一个只涉及 HTML 的简单登录注册静态页面的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>登录/注册</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.">
</head>
<body>
<h1>欢迎来到我的网站!</h1>
<h2>请登录或注册</h2>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br><br>
<input type="submit" value="登录">
<input type="button" value="注册" onclick="location.href='register.html'">
</form>
</body>
</html>
```
这个页面包含一个简单的登录表单和一个注册按钮,点击注册按钮会跳转到一个名为 `register.html` 的页面。注意,这只是一个静态页面,没有任何后端逻辑。
写一个基于html的简洁的静态登录页面
好的,我可以回答这个问题。以下是一个基于 HTML 的简洁的静态登录页面的示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>登录页面</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 10px rgba(, , , .2);
max-width: 400px;
margin: auto;
margin-top: 50px;
}
input[type="text"], input[type="password"] {
display: block;
width: 100%;
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: none;
box-shadow: 5px rgba(, , , .1);
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
transition: background-color .3s ease;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<form>
<h1>登录</h1>
<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>
```
希望这个示例代码能够帮助你实现一个简洁的静态登录页面。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)