禁用移动Safari的焦点事件(缩放) [英] Disabling mobile Safari's focus event (zoom)
本文介绍了禁用移动Safari的焦点事件(缩放)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点击iOS设备上的输入字段时,它会放大该元素。我可以禁用这个焦点事件吗?
When clicking an input field on an iOS device, it will zoom in on that element. Can i disable this focus event?
推荐答案
我解决了这个问题。
https://gist.github.com/2008932
I put up this gist which solves the problem. https://gist.github.com/2008932
接受的解决方案不正确,因为它会完全取消焦点,导致数据无法输入。
The accepted solution is not correct, as it will cancel focus altogether, which prevents data entry.
这篇关于禁用移动Safari的焦点事件(缩放)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文