分享好友 资讯首页 资讯分类 切换频道

注册页面设计html

2025-12-23 06:3000

html

<title>注册页面</title>

<style>

body {

font-family: Arial, sans-serif;

}

.container {

max-width: 400px;

margin: 0 auto;

padding: 20px;

border: 1px solid #ccc;

border-radius: 5px;

}

h2 {

text-align: center;

}

label {

注册页面设计html

display: block;

margin-bottom: 10px;

}

input[type="text"], input[type="password"] {

width: 100%;

padding: 10px;

border-radius: 5px;

border: 1px solid #ccc;

}

input[type="submit"] {

width: 100%;

background-color: #4CAF50;

color: white;

padding: 10px;

border: none;

border-radius: 5px;

cursor: pointer;

}

注册页面设计html

input[type="submit"]:hover {

background-color: #45a049;

}

</style>

<div class="container">

<h2>注册新账户</h2>

<form action="/register" method="post">

<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>

<label for="email">电子邮件:</label>

<input type="email" id="email" name="email" required><br><br>

<input type="submit" value="注册">

</form>

</div>

这个简单的注册页面包含了一个标题、一个表单和一些基本的样式,表单有三个输入字段:用户名、密码和电子邮件,以及一个提交按钮,表单的action属性设置为"/register",表示提交表单时将数据发送到服务器的"/register"路径。method属性设置为"post",表示使用POST方法发送数据,每个输入字段都有required属性,表示这些字段是必填的,你可以根据需要添加更多的输入字段或调整样式。
举报
收藏 0
打赏 0
评论 0
电信号如何短信查话费余额明细
电信号用户可通过短信查询话费余额和明细。发送“CXYE”或“YE”至10000号,即可快速查询话费余额。如需明细,发送“CXMZ”或“明细”至同一号码,操作简便,实时了解账户状况。

0评论2026-04-070

 
友情链接