<输入>在Microsoft Edge中接受属性 [英] <input> accept Attribute in Microsoft Edge

查看:130
本文介绍了<输入>在Microsoft Edge中接受属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Edge中工作吗?

Anyone know how to get accept working in Edge?

<input type="file" accept=".csv">

在Chrome 44,Firefox 39,IE 11,Opera 31中可以正常工作.

Works fine in Chrome 44, Firefox 39, IE 11, Opera 31.

也尝试过

<input type="file" accept=".csv,text/csv">

推荐答案

@JoeHealy 的答案与HTTP Accept标头有关,问题是什么.

As @mparizeau reported, @JoeHealy's answr is about HTTP Accept header, which is not what the question is about.

要回答这个问题:目前,<input type="file" />上的Edge 不支持 accept.

To answer the question: at the moment, Edge does not support accept on <input type="file" />.

曾经有一个错误跟踪器此处,现在只是SO重定向搜索-_-. 无论如何,随着即将推出的新Microsft Edge(Chromium),此问题将得到解决.

There used to be a bug tracker here, now it's just a SO redirected search -_-. Anyway, with the upcoming new Microsft Edge (Chromium) this issue will be resolved.

这篇关于&lt;输入&gt;在Microsoft Edge中接受属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆