用HTML写个简单的表单
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.l
{
background-color: darkolivegreen;
width: 200px;
height: 40px;
}
input
{
width: 300px;
}
.m
{
width: 30px;
}
.mf
{
width: 100px;
}
</style>
</head>
<body>
<form method="get">
<lable>
*邮件地址 <input type="email" placeholder="6~18个字符,可使用字母,数字,下划线,需以字母开头"> @
<select>
<option value="">163.com</option>
<option selected="selected">qq.com</option>
<option value="">sina.com</option>
</select>
</lable>
<br> <br>
<lable>
*密码 <input type="password" placeholder="6~16个字符,区分大小写">
</lable>
<br> <br>
<lable>
*确认密码 <input type="password" placeholder="请再次填写密码">
</lable>
<br> <br>
<lable>
*手机号码 <input type="tel" placeholder="忘记密码时,可以通过手机号快速找回">
</lable>
<br> <br>
<lable>
*验证码 <input type="text" placeholder="请先填写图中的字符,不区分大小写">
<br>
<br>
<input type="submit" value="免费获取验证码" class="mf">
</lable>
<br> <br>
<lable>
*短信验证码 <input type="text" placeholder="请查收手机短信,并填写短信中的验证码">
<br> <br>
<input type="checkbox" class="m">同意"服务条款"和"隐私相关政策"
</lable>
<br> <br>
<lable>
<input type="submit" value="立即注册" class="l">
</lable>
</form>
</body>
</html>
效果:
有什么问题欢迎留言!~~~~~