html5移动端input file可进行拍照和选择图片

<input type="file"  accept="image/*" capture="camera" size="30">

accept="image/*;capture=camera" 直接调用相机
accept="image/*" 调用相机 图片或者相册

转发:https://blog.csdn.net/cai_ethan/article/details/72781972

猜你喜欢

转载自blog.csdn.net/qq_34815528/article/details/81328930
今日推荐