html5数字和颜色输入框
html5功能强大,数字和颜色输入框例子
效果:http://hovertree.com/code/html5/rxujb6g8.htm
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 5 <title>何问起</title> 6 <meta charset="utf-8" /> 7 </head> 8 <body> 9 <div>数字和颜色输入框,请点击按钮试试<br /></div> 10 <form method="get" action="" id=hewenqi > 11 数字:<input type="number" /><br /><br /> 12 颜色:<input type="color" /><br /><br /> 13 <input type="submit" value="提交" /> 14 </form> 15 <div><br /><a href="http://hovertree.com/code/html5/qd3kyt3g.htm" target="_blank">上一篇</a></div> 16 </body> 17 </html>