input的file类型的accept属性的值
来源:互联网 发布:淘宝店铺商品拍摄 编辑:程序博客网 时间:2024/05/22 03:52
属性值
在上传文件的时候,需要限制指定的文件类型,accept这个属性,只在FF和chrome中有效。那么accept能限制哪些文件呢?见下表。
实例 :
1.accept="image/gif, image/jpeg"
2.accept="application/msword"
3.accept="application/pdf"
4.accept="application/poscript"
5.accept="application/rtf"
6.accept="application/x-zip-compressed"
7.accept="audio/basic"
8.accept="audio/x-aiff"
9.accept="audio/x-mpeg"
10.accept="audio/x-pn/realaudio"
11.accept="audio/x-waw"
12.accept="image/gif"
13.accept="image/jpeg"
14.accept="image/tiff"
15.accept="image/x-ms-bmp"
16.accept="image/x-photo-cd"
17.accept="image/x-png"
18.accept="image/x-portablebitmap"
19.accept="image/x-portable-greymap"
20.accept="image/x-portable-pixmap"
21.accept="image/x-rgb"
22.accept="text/html"
23.accept="text/plain"
24.accept="video/quicktime"
25.accept="video/x-mpeg2"
26.accept="video/x-msvideo"
office办公软件的升级版各文档的后缀名,如docx、xlsx
Extension MIME Type.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template.potx application/vnd.openxmlformats-officedocument.presentationml.template.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation.sldx application/vnd.openxmlformats-officedocument.presentationml.slide.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template.xlsm application/vnd.ms-excel.addin.macroEnabled.12.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
- input的file类型的accept属性的值
- <input type="file">的accept属性值详解
- html5 file的accept 类型
- HTML <input> 标签的 accept 属性
- HTML <input> 标签的 accept 属性
- input[file]标签的accept=”image/*”属性响应很慢的解决办法
- input[file]标签的accept=”image/*”属性响应很慢的解决办法
- input[file]标签的accept=”image/*”属性响应很慢的解决办法
- input type=file accept中可以限制的文件类型
- Html input file控件使用accept过滤 限制的文件类型
- Html input file控件使用accept过滤 限制的文件类型
- input type=file accept中可以限制的文件类型
- input type=file accept中可以限制的文件类型
- input type=file accept中可以限制的文件类型
- input type=file accept中可以限制的文件类型
- 清除file类型的input值
- (转载借鉴) input[file]标签的accept=”image/*”属性在google浏览器上响应很慢的解决办法
- <input type="file" />accept属性列表
- mybatis自己容易忘记的东西1(仅适自己)
- 2017暑假训练第十二天
- Python帮助文档的使用
- 最短路径之Dijkstra算法
- c语言初步经典题8--求一个数的各位值
- input的file类型的accept属性的值
- 数组去重复方法总结
- adb常用命令
- python爬虫进阶(四):多线程与多进程
- Centos7之pacemaker高可用安装配置详解
- Swift-枚举、结构体、类
- 套接字中SO_REUSEPORT和SO_REUSEADDR的区别
- wordpress优化之禁止别人复制你的文章,保护版权
- jbpm 个人任务和组任务