html input

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

posted @ 2015-09-22 23:23  agang_19  阅读(148)  评论(0编辑  收藏  举报