1、给会变大的元素上加上css样式webkit-text-size-adjust: none;即可。
参考资料1 https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-size-adjust
参考资料2 https://www.jianshu.com/p/9fad261dd3e1
2、iphonex底部遮挡住固定在底部的模块解决方案
padding-bottom: constant( safe-area-inset-bottom); /* 兼容 iOS < 11.2 /
padding-bottom: env( safe-area-inset-bottom); / 兼容 iOS >= 11.2 */
(ps:相当于在iphonex情况下,会自动加个padding-bottom的高度,不是的话就不生效,margin也行的哦)
参考资料https://blog.csdn.net/qq_42354773/article/details/81018615
3、长按图片时候,禁止系统出现选中复制
给对应的元素加上样式即可,
-webkit-touch-callout:none; //系统默认菜单被禁用/
-webkit-user-select:none; //webkit浏览器/
-moz-user-select:none;//火狐/
-ms-user-select:none; //IE10/
user-select:none;
4、苹果系统H5页面软键盘弹出造成点击事件失效
问题描述:苹果系统,软键盘弹出,键盘再收起时,原虚拟键盘位点击事件无效。
排查过程:只有iphonex、iphone6,ihpone7等部分机型会出现该问题;
原因:在IOS下,点击页面中的input时,弹出软键盘时,如果input比较靠下,整个页面会上移,document.body.scrollOffset会由0变成大于0。 软键盘消失后,页面会下移。但是document.body.scrollOffset并不会变成0,所以这时候触控不准;
input框失焦的时候执行 window.scrollTo(0, 0);
参考资料 https://www.cnblogs.com/zzghk/p/11271804.html
https://segmentfault.com/a/1190000022801862