-webkit-tap-highlight-color 当设置为transparent或者rgba(0,0,0,0)时,点击任何可点击元素的时候不会显示高亮
-webkit-touch-callout 当设置为none可以防止用户保持复制图片,也不会弹出其他的复制层
setTimeout(scrollTo,0,0,0);可以去除iOS和android中输入URL的控件条,文档高度必须高于窗口高度才有效
获取滚动条的值window.scrollY和window.scrollX
Andrioid平台判断网络连接类型navigator.connection.type == navigator.connection.WIFI,3G,etc.
window.navigator.onLine;判断是否在线还是离线
Window.navigator.standalone 判断是否为全屏模式
特殊事件
Ios和andrioid touchstart/touchmove/touchend/touchcancel
Ios还支持 getTureStart/getTureChange/getTurend
1 <!-- regular file upload (Android 2.2+, NO iOS) -->
2 <input type="file"></input>
3
4 <!-- opens directly to the camera (Android 3.0+) -->
5 <input type="file" accept="image/*;capture=camera"></input>
6
7 <!-- opens directly to the camera in video mode (Android 3.0+) -->
8 <input type="file" accept="video/*;capture=camcorder"></input>
9
10 <!-- opens directly to the audio recorder (Android 3.0+) -->
11 <input type="file" accept="audio/*;capture=microphone"></input>