<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统 V3.0</title>
<link rel='stylesheet' href='./css/login.css' type='text/css' />
<body>
<div id="login">
<h1><a href="#" title="">用户注册--管理系统</a></h1>
<form accept-charset="utf-8" action="/gys.php?action=user&do=add2" method="post">
<p>
<label>注册帐号:</label>
<input class="input" ng-minlength="5" placeholder="请输入注册账号" name="username" size="20" type="text" />
</p>
<p>
<label>注册密码:</label>
<input class="input" placeholder="请输入注册密码" name="password" size="20" type="password" />
</p>
<p>
<label>微信账号:</label>
<input class="input" placeholder="请输入微信账号" name="wxname" size="20" type="text" />
</p>
<p>
<label>阿里账号:</label>
<input class="input" placeholder="请输入阿里账号/没有可不写" name="aliname" size="20" type="text" />
</p>
<p>
<label>手机号码:</label>
<input class="input" placeholder="请输入手机号码" name="phone" size="20" type="text" />
</p>
<p class="submit">
<input class="button-primary" name="commit" type="submit" value="提交信息" />
</p>
</form>
</div>
</body>
</html>
<input class="input" placeholder="请输入手机号码" name="phone" size="20" type="text" required />追问
GOOD ,比JS好使多了,还有没有更多控制方法,例如长度
追答maxlength="5"
本回答被提问者和网友采纳