案例:html案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<p>
6
Depending on browser support:<br>
7
A color picker can pop-up when you enter the input field.
8
</p>
9
10
<form action="/example/html/form_action.aspx">
11
  Select your favorite color:
12
  <input type="color" name="favcolor" value="#ff0000">
13
  <input type="submit">
14
</form>
15
16
<p><b>Note:</b> type="color" is not supported in Internet Explorer.</p>
17
18
</body>
19
</html>