Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.3k views
in Technique[技术] by (71.8m points)

html如何限制弹出框不能拍照,只能从图库选择

测试发现ios的手机用相机拍照传图的话图片会倒过来,所以想把拍照选项关掉

<input
style={{ display: "none" }}
id="imgOn"
type="file"
accept="image/*"
onChange={() => this.imgUpload()}
/>

请问有什么方法可以将拍照选项关掉吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

HTML input file disable “take photo” option

没发现禁用拍照选项的解决办法,可以尝试按上面回答中给出的解决方案尝试下,但这样做用户体验不是很好


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...