file有个accept属性,可是好象不起作用ACCEPT Attribute | accept Property Internet Development Index --------------------------------------------------------------------------------Sets or retrieves a comma-separated list of content types.SyntaxHTML <INPUT ACCEPT = sAccept... >
Scripting INPUT.accept(v) [ = sAccept ] Possible ValuessAccept String that specifies or receives comma-separated list of content types. The property is read/write. The property has no default value.ResThe information from the list can be used to filter out nonconforming files when prompting a user to select files to be sent to the server using the <INPUT> element with type="file".Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered Multipurpose Internet Mail Extensions (MIME) types, see MIME types . There is no functionality implemented for this property unless defined by the author.
Scripting INPUT.accept(v) [ = sAccept ] Possible ValuessAccept String that specifies or receives comma-separated list of content types. The property is read/write. The property has no default value.ResThe information from the list can be used to filter out nonconforming files when prompting a user to select files to be sent to the server using the <INPUT> element with type="file".Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered Multipurpose Internet Mail Extensions (MIME) types, see MIME types . There is no functionality implemented for this property unless defined by the author.
解决方案 »
- 跪求高手帮忙写个像手机菜单的网页!!!急用
- jquery淡入淡出问题
- javascript函数的返回值怎样赋给链接的num参数?
- javascript 获取 Activex传出的VARIANT 类型
- 关于history.back()的一些问题.....急呀
- javascript循环问题
- extjs grid怎样展示换行数据
- 怎么用 可视高度判断 提示框显示在可视高度的上半部分显示还是在下半部分显示
- <IE:Download ID="oDownload" STYLE="behavior:url(#default#download);">如何显示big5?
- 用JAVASCRIPT写的菜单为什么会沉在输入框后面。
- 用数组填充窗口,巨慢。
- 字符串转换成日期
to: ttyp(愿赌服输)
我也这篇文中看到可以设置accept 但没成功。
http://www.sdau.edu.cn/support/aspjc/part6/6-1-12.cfm.htm
不知道MIME在哪里可以设置?