帮我做一个比较精美的html注册见面
时间: 2023-12-14 18:02:12 浏览: 36
您好,感谢您提出的问题。我已经根据您的要求帮您设计了一个比较精美的注册页面,代码如下:
<!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;
margin: 0;
padding: 0;
}
h1{
text-align: center;
padding: 50px;
color: #0099cc;
}
form{
margin: 2% auto;
width: 35%;
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
input{
display: block;
font-size: 16px;
padding: 10px;
border-radius: 5px;
border: none;
width: 100%;
margin-bottom: 10px;
}
.btn{
background-color: #0099cc;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin-top: 10px;
}
.btn:hover{
background-color: #00bfff;
color: #fff;
transition: 0.2s ease-in-out;
}
</style>
</head>
<body>
<h1>注册页面</h1>
<form action="#" method="post">
<input type="text" name="name" placeholder="请输入用户名" required>
<input type="email" name="email" placeholder="请输入邮箱" required>
<input type="password" name="password" placeholder="请输入密码" required>
<input type="password" name="confirm_password" placeholder="请再次输入密码" required>
<button class="btn" type="submit">注册</button>
</form>
</body>
</html>
希望这个页面符合您的要求,如果有任何问题,请随时与我联系。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![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)