Alex Vincent's Blog

  • 首页
  • 我的
    • GitHub
  • 友情链接
    • Cal's Blog
    • Evsio0n的个人小站
    • Helo's Blog
Alex's Blog
Where Alex (a.k.a. AlexV525) used to write his blog.
  1. 首页
  2. Front End
  3. 正文

ios 前端挖坑记

5月 1, 2018 2449点热度 0人点赞 0条评论

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" />

标签: 暂无
最后更新:3月 2, 2019

Alex Vincent

这个人很懒,什么都没留下

点赞

COPYRIGHT © 2021 AlexV525. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

桂ICP备16008143号-1