输入类型“color”? [英] Input type "color"?
问题描述
我从HTML5中检出了一些输入类型,我发现输入类型颜色的chrome支持不起作用。我的Chrome版本是15.0.874.121,而 w3schools网站表示自12版本以来:
I checked out some input type from HTML5 and I found out that the chrome support for the input type color doesn't work. My chrome version is 15.0.874.121 and the w3schools site says that it's supported since the version 12 :
我的问题是:为什么这对我不起作用?
My question is just : why that doesn't work for me? Is it a regression of the HTML5 support in Chrome?
推荐答案
我有Chrome的独立版本用于测试(请参阅 http://www.oldapps.com/google_chrome.php ),Chrome 12,13或15似乎支持< input type =color>
- 它们都只显示一个文本字段。 (与Opera 11,它显示一个颜色选择器相反。)
I’ve got standalone versions of Chrome for testing (see http://www.oldapps.com/google_chrome.php), and neither Chrome 12, 13 or 15 seem to support <input type="color">
— they all just show a text field. (As opposed to Opera 11, which shows a colour picker.)
@ WebDeveloper的回答说,html5test.com报告Chrome 12在< input type =color>
上支持字段验证。这是真的 - html5test.com报告的Chrome 12(而不是Chrome 15),但我不知道这是什么意思。
The Reddit article linked to in @WebDeveloper’s answer says that html5test.com reports Chrome 12 as supporting field validation on <input type="color">
. This is true — html5test.com does report that for Chrome 12 (and doesn’t for Chrome 15), but I’m not sure what that actually means.
这篇关于输入类型“color”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!