html input="file" 浏览时只显示指定文件类型 xls、xlsx、csv_html/css_WEB-ITnose
程序员文章站
2024-02-12 15:59:52
...
Valid Accept Types:
For CSV files (.csv), use:
For Excel Files 2003-2007 (.xls), use:
For Excel Files 2010 (.xlsx), use:
For Text Files (.txt) use:
For Image Files (.png/.jpg/etc), use:
For HTML Files (.htm,.html), use:
For Video Files (.avi, .mpg, .mpeg, .mp4), use:
For Audio Files (.mp3, .wav, etc), use:
For PDF Files, use:
DEMO:
http://jsfiddle.net/dirtyd77/LzLcZ/144/