<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <form method="get" action=""> color:<input type="color" ><br> date:<input type="date" autofocus="autofocus" >autofocus自动获取焦点<br> datetime:<input type="datetime" ><br> datatime-local:<input type="datetime-local"><br> email:<input type="email" placeholder="123@qq.com"><br> month:<input type="range" ><br> time:<input type="time" required="required"><br> tel:<input type="tel"><br> url:<input type="url" ><br> week:<input type="week" ><br> <input type="submit" > </form> </body> </html>
HTML5新的表单功能
最新推荐文章于 2022-03-22 16:22:39 发布