IOS Safari兼容问题

987 阅读1分钟

元素点击无效

给元素样式添加cursor: pointer

window.location.href无效

只在ios8的版本出现过,已修复

overflow卡顿

  1. 添加css属性,-webkit-overflow-scrolling:touch,但这个属性会带来很多bug
  2. 将overflow属性添加到超长元素上

input可以点击选中,却没有光标

//设置了文本禁止选中
-webkit-touch-callout: none;
-webkit-user-select: none;
//应改为
-webkit-touch-callout: text;
-webkit-user-select: text;