标签:
<!DOCTYPE html><meta charset="utf-8"><form action=""><input type="tel" name="num" title="10 wei" pattern="^\d{10$}">
type 等于 tel 匹配用正则表达式,title是提示<input type="submit"></form>
html input
原文地址:http://www.cnblogs.com/agang-php/p/4830892.html