网页在mac版企业微信打开,input标签的accept属性无效,无法筛选文件

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 1778 0 全屏看文

AI助手支持GPT4.0

网页在mac版企业微信打开,input标签的accept属性无效,无法筛选文件

input标签代码如下:

<input type="file" name="file" accept="image/png, image/jpeg" >


在pc版的企业微信以及edge、chrome浏览器表现正常,可以筛选文件类型。

在mac版的Safari浏览器表现正常,可以筛选文件类型。

在mac版的企业微信中表现不正常,不能筛选文件类型。


企业微信中选择文件:

Safari浏览器中点击选择文件:

The input label code is as follows: < input type = "file" name = "file" accept = "image / PNG, image / jpeg" > in the PC version of enterprise wechat, edge and chrome browsers, the file type can be filtered. In the Mac version of safari browser works normally, you can filter file types. In the Mac version of enterprise wechat is not normal, can not filter file type. Select file in enterprise wechat: click Select File in Safari browser:

回答:

企业微信运营专员-千夜:

您好,正常情况下标签属性 是需要web来适配的 客户端是感知不到的,所以需要开发者自己根据不同的webview来适配

元创科技:您的意思是Mac版的企业微信需要单独适配吗,请问企业微信中用什么方法来代替input标签的文件类型筛选功能呢?或者说要实现文件筛选功能,在企业微信中需要怎么做?

-EOF-

AI助手支持GPT4.0