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 @   呈心者  阅读(159)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示