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/*">

posted @ 2021-01-07 11:12  李逍遥701  阅读(172)  评论(0)    收藏  举报