Can I Use?(我能用么?)为大家统计HTML5和CSS3等新技术的浏览器兼容性。推荐使用Chrome、Firefox、Opera、IE 11、Safari等浏览器访问本站。更新时间:2015.11.28

支持 部分支持 需要使用私有属性 不支持 是否支持未知

#accept attribute for file input浏览器兼容一览表# 

扩展链接:WHATWG Living Standard

Allows a filter to be defined for what type of files a user may pick with from an `<input type="file">` dialog

支持46.66
部分支持23.54
总计70.2
IEEdgeFirefoxChromeSafariOperaiOS SafariOpera MiniAndroid BrowserOpera MobileBlackberry BrowserChrome for AndroidFirefox for AndroidIE MobileUC Browser for Android
45 49
44 48 35
14 43 47 34
11 13 42 46 9 #1 33 9.0-9.1 5.0-8.0 46 #3 33 #2 10 #1 46 #2 42 11 #4 9.9
10 12 41 45 8 #1 32 8.1-8.4 4.4.3-4.4.4 #3 12.1 7 #2 10 #3
9 40 44 7.1 #1 31 8 4.4 #3 12
8 39 43 7 #1 30 7.0-7.1 4.2-4.3 #2 11.5
7 38 42 6.1 #1 29 6.0-6.1 4.1 #2 11.1
6 37 41 6 #1 28 5.0-5.1 #3 4 #2 11
5.5 36 #1 40 5.1 27 4.2-4.3 #3 3 #2 10
35 #1 39 5 26 4.0-4.1 #3 2.3
34 #1 38 4 25 3.2 #3 2.2
33 #1 37 3.2 24 2.1
32 #1 36 3.1 23
31 #1 35 22
30 #1 34 21
29 #1 33 20
28 #1 32 19
27 #1 31 18
26 #1 30 17
25 #1 29 16
24 #1 28 15
23 #1 27 12.1
22 #1 26 12
21 #1 25 11.6
20 #1 24 11.5
19 #1 23 11.1
18 #1 22 11
17 #1 21 10.6
16 #1 20 #1 10.5
15 #1 19 #1 10.0-10.1
14 #1 18 #1 9.5-9.6
13 #1 17 #1 9
12 #1 16 #1
11 #1 15 #1
10 #1 14 #1
9 #1 13 #1
8 #1 12 #1
7 #1 11 #1
6 #1 10 #1
5 #1 9 #1
4 #1 8
3.6 7
3.5 6
3 5
2 4
Not supported means any file can be picked as if the `accept` attribute was not set, unless otherwise noted. On Windows, files that do not apply are hidden. On OSX they are grayed out and disabled.
  • #1: Supports the type format (e.g. `image/*`) but not the extension format (e.g. `.png`)
  • #2: Offers appropriate file locations/input based on format type, but does not prevent other files from being selected.
  • #3: Does not allow any files to be picked at all
  • #4: Supports the type format but does not allow any file to be picked when using the extension format
  • 教程博文

    联系作者请发邮件到作gmail邮箱:gm4linus at gmail dot com

    作者CSDN博客

    当按下任意键时筛选输入框可自动获得焦点并输入您所输入的字母。

    按下shift + 删除 键可清空筛选输入框。

    Can I Use? 我能用么?

    HTML5和CSS3为前端开发者提供了很多好用的新特性。但是由于现在仍处于标准制定阶段,且各阶段的草案也不尽相同,所以各浏览器是否实现某一新特性以及实现到什么程度存在较大差异。若开发者对每一个浏览器以及该浏览器的各版本均做一次测试工作量会特别巨大,本站为大家提供了这些新特性在各浏览器的实现情况,让大家一目了然的了解HTML5和CSS3新特性是否可以在工作中使用,进而提高了工作效率。