日期:2014-05-17  浏览次数:20700 次

<input type="file" />浏览时只显示指定文件类型
如题。。。是浏览的结果中只显示指定类型的文件 求助

------解决方案--------------------
等大腿
------解决方案--------------------
HTML code

<input type="file" accept="application/msword" ><br><br>accept属性列表<br>
1.accept="application/msexcel"<br>
2.accept="application/msword"<br>
3.accept="application/pdf"<br>
4.accept="application/poscript"<br>
5.accept="application/rtf"<br>
6.accept="application/x-zip-compressed"<br>
7.accept="audio/basic"<br>
8.accept="audio/x-aiff"<br>
9.accept="audio/x-mpeg"<br>
10.accept="audio/x-pn/realaudio"<br>
11.accept="audio/x-waw"<br>
12.accept="image/gif"<br>
13.accept="image/jpeg"<br>
14.accept="image/tiff"<br>
15.accept="image/x-ms-bmp"<br>
16.accept="image/x-photo-cd"<br>
17.accept="image/x-png"<br>
18.accept="image/x-portablebitmap"<br>
19.accept="image/x-portable-greymap"<br>
20.accept="image/x-portable-pixmap"<br>
21.accept="image/x-rgb"<br>
22.accept="text/html"<br>
23.accept="text/plain"<br>
24.accept="video/quicktime"<br>
25.accept="video/x-mpeg2"<br>
26.accept="video/x-msvideo"