vscode登陆注册界面设计代码
时间: 2023-08-13 14:24:05 浏览: 192
由于我不知道你的具体技术栈和框架,以下是一个简单的 HTML/CSS 代码示例,可以实现上述的登陆注册界面设计:
```html
<!DOCTYPE html>
<html>
<head>
<title>VSCode 登陆注册页面</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
#container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#login-form,
#register-form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
font-size: 36px;
margin-bottom: 20px;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #d1d1d1;
border-radius: 5px;
font-size: 16px;
}
label {
display: block;
text-align: left;
margin-bottom: 10px;
font-size: 16px;
font-weight: bold;
}
input[type="checkbox"] {
margin-right: 5px;
}
button {
background-color: #007acc;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
button:hover {
background-color: #005c9b;
}
a {
color: #007acc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div id="container">
<form id="login-form" action="#" method="post">
<h1>登陆</h1>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名" required>
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码" required>
<label for="remember-me">
<input type="checkbox" id="remember-me" name="remember-me"> 记住我
</label>
<button type="submit">登陆</button>
<p><a href="#">忘记密码?</a></p>
</form>
<form id="register-form" action="#" method="post">
<h1>注册</h1>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名" required>
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码" required>
<button type="submit">注册</button>
</form>
</div>
</body>
</html>
```
这段代码使用了 flexbox 布局,使登陆注册表单水平居中,并垂直居中于整个页面。同时,使用了 VSCode 的标准颜色和字体,以确保与 VSCode 的整体风格一致。
相关推荐
![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)
![](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)