HTML5创建的简易web表单
来源:互联网 发布:g3110扫描仪软件 编辑:程序博客网 时间:2024/06/03 18:00
<!DOCTYPE html><!-- ! Excerpted from "HTML5 and CSS3", ! published by The Pragmatic Bookshelf. ! Copyrights apply to this code. It may not be used to create training material, ! courses, books, articles, and the like. Contact us if you are in doubt. ! We make no guarantees that this code is fit for any purpose. ! Visit http://www.pragmaticprogrammer.com/titles/bhh5 for more book information.--><html lang="en"><head> <title>AwesomeCo Newsletter</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <script src="jquery.js"></script> <script type="text/javascript"> $(function(){ function hasColorSupport(){ input = document.createElement("input"); input.setAttribute("type", "color"); var hasColorType = (input.type !== "text"); // handle Safari/Chrome partial implementation if(hasColorType){ var testString = "foo"; input.value=testString; hasColorType = (input.value != testString); } return(hasColorType); } if (!hasColorSupport()){ $('input[type=color]').simpleColor(); } }); </script> <style> ol{ padding:0; margin:0; list-style: none; } ol li{ padding:0; clear: both; margin:0 0 10px 0; } label{ float: left; width:150px; } </style></head><body><form method="post" action="/Projects/1"> <fieldset id="Personal_information"> <legend>Project Information</legend> <ol> <li> <label for="name">Name</label> <input type="text" name="name" autofocus id="name"/> </li> <li> <label for="priority">Priority</label> <input type="range" min="0" max="10" name="priority" value="0" id="priority"/> </li> <li> <label for="estimated_hours">Estimated hours</label> <input type="number" min="0" max="1000" name="estimated_hours" id="estimated_hours"/> </li> <li> <label for="start_date">Start date</label> <input type="date" value="2016-8-11" name="start_date" id="start_date"/> </li> <li> <label for="email">Email contact</label> <input type="email" name="email" id="email"> </li> <li> <label for="url">Staging URL</label> <input type="url" name="url" id="url"/> </li> <li> <label for="project_color">Project color</label> <input type="color" name="project_color" id="project_color"/> </li> <li> <input type="submit" value="Submit"/> </li> </ol> </fieldset></form></body></html>
0 0
- HTML5创建的简易web表单
- HTML5基础13----HTML5表单的创建
- 如何创建跨浏览器的HTML5表单
- 如何创建跨浏览器的HTML5表单
- HTML5学习笔记【1】表单的创建
- 2.6.1HTML5表单的创建
- web前端关于html5的表单控件
- 4.HTML5 Web表单
- cocos2d-html5 简易 下拉表单 控件
- 使用HTML5和CSS3创建一个时髦的联系表单
- 使用HTML5和CSS3创建一个时髦的联系表单
- HTML5表单的创建以及和php交互
- 创建表单web页
- HTML5 Web Storage制作简易数据库
- 基于HTML5的表单
- Html5 表单的LocalStorage
- HTML5---疯狂的表单
- html5的表单系列
- Android线程池详解
- java系统运维:使用java自带的工具监控系统(java)虚机的运行
- 手机浏览器下判断是否安装某app,并判断是否打开该应用
- 使用Spring进行面向方面编程
- form表单回车ajax提交
- HTML5创建的简易web表单
- HDU 2604 Queuing [递推]【矩阵快速幂】
- 如何在Eclipse中查看Java类库的源代码以及相应的api
- php数组和xml之间相互转化
- 51nod 1101 完全背包
- 计蒜客 数据结构 链表 ——应用筛选简历 C++
- Float Vs BigDecimal
- FastJSON
- IOS友盟 社会化分享 > 社会化iOS组件 > 分享集成