直到 ios 10 都可以正常工作。当用户点击 ipad 中的输入按钮时,它会要求从图库中选择图像或从相机中捕获图像。 但在ios 11中是直接打开相机。任何人都可以帮助我如何打开图库,以便用户可以从图库中选择图像。
<input type="file" accept="image/*" id="image-input" capture />
最佳答案
这和我一起工作
<input type="file" accept="image/*" id="image-input"/>
关于javascript - html 输入类型文件接受图像不允许在 ios 11 中选择文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46443097/