Input Color type 属性
定义和用法
type 属性返回颜色选择器是哪种类型的表单元素。
对于颜色选择器,此属性将始终返回 "color"。
浏览器支持
| 属性 | |||||
|---|---|---|---|---|---|
| type | Yes | 10.0 | Yes | Yes | Yes |
注释:<input type="color"> 元素在 Internet Explorer 和 Safari 中不显示任何颜色选择器。
语法
colorObject.type
技术细节
| 返回值: | 字符串,表示颜色选择器是表单元素的类型 |
|---|
type 属性返回颜色选择器是哪种类型的表单元素。
对于颜色选择器,此属性将始终返回 "color"。
| 属性 | |||||
|---|---|---|---|---|---|
| type | Yes | 10.0 | Yes | Yes | Yes |
注释:<input type="color"> 元素在 Internet Explorer 和 Safari 中不显示任何颜色选择器。
colorObject.type
| 返回值: | 字符串,表示颜色选择器是表单元素的类型 |
|---|