input-accept

设置文件类型

四种值:

  1. audio/*
  2. video/*
  3. image/*
  4. MIME_type

多姿:

单个值: <input type="file" name="pic" accept="image/*">

多个值:<input type="file" name="i" accept="image/*,audio/*,video/*">

原文地址:https://www.cnblogs.com/flyover/p/14245364.html