form的智能表单
1.智能表单的介绍
其中,(1)中的使用格式使得form不会太臃肿。

2.使用规范

3.新属性

4.举例

二.程序
1.关于邮件的问题
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="" type="email" name="email" placeholder="请输入正确mail地址"/><br/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
2.结果

3.网址
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
4.结果
网址的开头需要http://

5.各种日期
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
6.结果

7.数字
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> <!--number-->
数字<input id="n1" type="number" name="number"/><br/> <!--range--> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
8.结果

9.滑动
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> <!--number-->
数字<input id="n1" type="number" name="number"/><br/> <!--range-->
滑动<input id="r1" type="range" min="0" max="3" step="1"/><br/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
10.结果

11.搜索
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> <!--number-->
数字<input id="n1" type="number" name="number"/><br/> <!--range-->
滑动<input id="r1" type="range" min="0" max="3" step="1"/><br/><br/> <!--search-->
搜索<input id="s1" type="search" name="search" results="n" value="搜索"/><br/><br/>
提交<input type="submit" value="提交"/>
</form>
</body>
</html>
12.结果

13.list属性
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> <!--number-->
数字<input id="n1" type="number" name="number"/><br/> <!--range-->
滑动<input id="r1" type="range" min="0" max="3" step="1"/><br/><br/> <!--search-->
搜索<input id="s1" type="search" name="search" results="n" value="搜索"/><br/><br/> <!--text--list-->
list<input id="t2" type="text" list="ilist"/>
<datalist id="ilist">
<option label="o1" value="oo1">
<option label="o2" value="oo2">
<option label="o3" value="oo3">
</datalist>
<br/><br/><br/><br/><br/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
14.结果

15.颜色与正则
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>form test</title>
</head>
<body>
<form id="for" action="" method="get">
<!--email-->
邮件<input id="e1" type="email" name="email" placeholder="请输入正确mail地址"/><br/> <!--url---->
网址<input id="u1" type="url" name="url"/><br/><br/> <!--time,date-->
日期<input id="d1" type="date" name="time"/><br/>
月份<input id="m1" type="month" name="month"/><br/>
星期<input id="w1" type="week" name="week"/><br/>
时间<input id="t1" type="time" name="time"/><br/><br/> <!--number-->
数字<input id="n1" type="number" name="number"/><br/> <!--range-->
滑动<input id="r1" type="range" min="0" max="3" step="1"/><br/><br/> <!--search-->
搜索<input id="s1" type="search" name="search" results="n" value="搜索"/><br/><br/> <!--text--list-->
list<input id="t2" type="text" list="ilist"/>
<datalist id="ilist">
<option label="o1" value="oo1">
<option label="o2" value="oo2">
<option label="o3" value="oo3">
</datalist> <!--color required pattern-->
颜色<INPUT type=color><br>
正则测试<input type="text" pattern="[789]+" required />
<br/><br/><br/><br/><br/> 提交<input type="submit" value="提交"/>
</form>
</body>
</html>
16.结果

form的智能表单的更多相关文章
- HTML5_智能表单
1.HTML5中为了方便排版,可以使from中的表单标签脱离from的嵌套.方法:from指定ID,所有表单标签均添加from=id属性. <form action="http://l ...
- BootStrap 智能表单系列 首页 (持续更新中...)
背景:本码农.NET后端工程师,在项目开发中发现写了很多重复的代码, 于是自己整了一套根据配置来生成form表单的插件,针对表单的改动仅需要修改配置的json即可 使用中发现还是蛮实用的,于是开源出来 ...
- BootStrap 智能表单系列 六 表单数据绑定(编辑页面的数据绑定)
本章介绍如何在生成表单后,将一个model的数据展示到form表单中(一般用于编辑页面) 代码如下(连接地址:https://github.com/xiexingen/Bootstrap-SmartF ...
- BootStrap 智能表单系列 七 验证的支持
但凡是涉及到用户编辑信息然后保存的页面,都涉及到一个数据是否符合要求的检查,需要客服端和服务器端的校验的问题: 客服端的校验主要是为了提高用户体验,而服务器端的校验为了数据的合格性 该插件也为您支持到 ...
- BootStrap 智能表单系列 四 表单布局介绍
表单的布局分为自动布局和自定义布局两种: 自动布局就是根据配置项中第二级配置项中数组的长度来自动使用不同的bootstrap栅格,通过设置autoLayout为true可以实现自动布局 自动以布局就是 ...
- BootStrap 智能表单系列 三 分块表单配置的介绍
相信广大博友肯定碰到过一个编辑页面分了很多块的情况,智能表单插件已经为您支持了这种情况, 代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartF ...
- BootStrap 智能表单系列 二 BootStrap支持的类型简介
代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartForm/blob/master/demo/form1-basic.html): <! ...
- HTML5 智能表单
HTML5 智能表单 1.表单新增属性 ☀ autofocus 属性 <input type="text" autofocus/>设置 autofocus 属性,使文 ...
- HTML5智能表单
HTML5 智能表单 1.表单新增属性 ☀ autofocus 属性 <input type="text" autofocus/>设置 autofocus 属性,使文 ...
随机推荐
- Codeforces 817
A 你可以按如下方式移动 问能不能从给定的一个坐标走到另一个. [solution] 裸,奇偶性注意 #include<stdio.h> #include<stdlib.h> ...
- GROUP BY和 HAVING 及 统计函数 执行顺序等
[我理解:where是对最外层结果进行条件筛选,而having是对分组时分组中的数据进行 组内条件筛选,注意:只能进行筛选,不能进行统计或计算,所有统计或计算都要放在最外层的select 后面,无论是 ...
- Linux上java程序的jar包启动通用脚本(稳定用过)
Linux上java程序的jar包启动通用脚本如下: #! /bin/sh export LANG="zh_CN.GBK" SERVICE_NAME=` .sh` SCRIPT_N ...
- 无焦点下获取条码枪返回值的Hook(再次改良版)
针对上一个版本再次改良,上除掉无用代码,新手绝对可以看懂! using System; using System.Collections.Generic; using System.Linq; usi ...
- [Spring] 学习Spring Boot之二:整合MyBatis并使用@Trasactional管理事务
一.配置及准备工作 1.在 Maven 的 pom 文件中新增以下依赖: <dependency> <groupId>mysql</groupId> <art ...
- keepalived 配置文件参数详解
global_defs 全局配置vrrpd 1. vrrp_script添加一个周期性执行的脚本.脚本的退出状态码会被调用它的所有的VRRP Instance记录. 2. vrrp_sync_grou ...
- 在ajax请求后台时在请求标头RequestHeader加token
情景:为了保证系统数据的安全性,一般前后台之间的数据访问会有授权与验证,这里的Token机制相对于Cookie支持跨域访问,在RESTful API里面,验证一般可以使用POST请求来通过验证,使服务 ...
- 流媒体技术学习笔记之(七)进阶教程OBS参数与清晰度流畅度的关系
源码地址:https://github.com/Tinywan/PHP_Experience 很多主播问过OBS的参数到底什么影响画质,到底什么影响流畅度,那么本篇教程尽量用通俗的语言解释下一些重要参 ...
- 《高性能MySQL》——第五章创建高性能索引
1.创建索引基本语法格 在MySQL中,在已经存在的表上,可以通过ALTER TABLE语句直接为表上的一个或几个字段创建索引.基本语法格式如下: ALTER TABLE 表名 ADD [UNIQUE ...
- 第10月第13天 xcode ipa
1. xcodebuild -exportArchive -exportFormat ipa -archivePath RongChatRoomDemo\ 17-7-13\ 下午4.04.xcarch ...