ios 前端挖坑记

CSS:
-webkit-tap-highlight-color: transparent; /*** 消除点击屏幕闪烁 ***/
-webkit-overflow-scrolling: touch; /*** 惯性滑动 ***/
font-family: -apple-system /*** 系统自动分配字体 ***/
ios下存在position: fixed的渲染浮动问题,尽量使用position: absolute替代。
JS:
使用fastclick消除延迟300ms问题。
HTML:
safari对没有href属性的a标签不进行处理。
<meta name=”viewport” content=”width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no” />
<meta name=”format-detection” content=”email=no” />
<meta name=”format-detection” content=”telephone=no” />
<meta name=”apple-mobile-web-app-capable” content=”yes” />
<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />


已发布

分类

作者:

标签