最近尝试将做的一个Android项目web化,而其中的一个方案,就是做成html5的。于是做了一些Demo,也做了一些简单的研究。其中一个比较重要的问题,就是HTML5在Android和IOS的兼容性如何。
找到下面的表格,很好的解答了我的问题。
与看到这篇博文的好友一起分享。
Feature | Safari on iOS | Android Browser | BlackBerry Browser | Nokia Browser | Internet Explorer | Opera | Firefox | webOS Browser | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Version tested | iPhone, iPad | Phones (1-2.3, 4.0) |
Tablets (3.0+) | Phones | Tablet | Meego - Nokia N9 | Symbian | Windows Phone | Mobile | Mini | Android | |
Minimum version tested | 3.2 | 1.5 | 3.0 | 5.0 | 1.0 | 1.2 | ^3 | 9 | 11 | 5 | 6 | 1.4 |
Application CacheW3C APIOffline package installation. |
2.1+ |
6.0+ |
||||||||||
Web storageW3C APIPersistent and session storage. |
2.0+ |
6.0+ |
||||||||||
Web SQL storageW3C API (no active)Persistent SQLite storage. |
2.0+ |
6.0+ |
||||||||||
GeolocationW3C APIGeolocation & tracking using GPS, cells or Wi-Fi. |
2.0+ |
6.0+ |
||||||||||
MultimediaW3C APIVideo & Audio Players |
2.3+ |
7.0+ |
||||||||||
Server-Sent EventsW3C APIEventSource pattern to mantain the connection to the server open |
4.1+ |
|||||||||||
Web SocketsW3C APINewbidireccional protocol over HTTP |
4.2+ |
6.1+ |
7+ |
|||||||||
Feature | Safari on iOS | Android Browser | BlackBerry Browser | Nokia Browser | Internet Explorer | Opera | Firefox | webOS Browser | ||||
Version tested | iPhone, iPad | Phones (1.0-2.3) | Tablets (3.0+) | Phones | Tablet | Meego - Nokia N9 | Symbian | Windows Phone | Mobile | Mini | Android | |
Web WorkersW3C APIThreading and background process communications |
5.0+ |
6.0+ |
||||||||||
Canvas APIW3C API2D Drawing API |
Anna+ |
|||||||||||
SVGW3C Working GroupScalable Vector Graphics |
4.0+ |
|||||||||||
Motion SensorsW3C StandardAccelerometer, Gyroscope, Magnetometer |
4.2 |
4.0+ |
moz (custom) |
|||||||||
HTML5 Form Virtual KeyboardsW3C StandardText Inputs with different keyboards |
Anna+ |
|||||||||||
HTML5 Form New ControlsW3C APIAt least: Date, Time, Month, Range |
5.0+ |
|||||||||||
Touch EventsW3C APItouchstart, touchend, touchmove, touchcancel |
2.1+ |
6.1+ |
(android) |
|||||||||
Feature | Safari on iOS | Android Browser | BlackBerry Browser | Nokia Browser | Internet Explorer | Opera | Firefox | webOS Browser | ||||
Version tested | iPhone, iPad | Phones (1.0-2.3) | Tablets (3.0+) | Phones | Tablet | Meego - Nokia N9 | Symbian | Windows Phone | Mobile | Mini | Android | |
CSS 3 BasicW3C Standardopacity, backgrounds, text effects, rounded corners |
6.0 |
Anna+ |
partial |
|||||||||
CSS 3 Transforms 2DW3C Standardrotate, translate, scale, skew, matrix |
2.0+ |
6.0 |
Anna+ |
partial |
||||||||
CSS 3 Transforms 3DW3C Standardscale3d, translate3d. Perspective, Backface |
4.0+ |
|||||||||||
CSS 3 TransitionsW3C StandardAnimations between two states |
2.0+ |
6.0 |
Anna+ |
|||||||||
CSS 3 AnimationsW3C StandardAnimations with keyframes |
2.0+ |
6.0 |
Anna+ |
|||||||||
Viewport definitionW3C APIMeta tag support. |
supports target-densityDpi |
Anna+ |
supports css & meta |
|||||||||
Position: fixed supportW3C StandardAbility to mantain an element fixed in the viewport while scrolling / zooming |
5.0+ |
2.2+ & non scalable viewport |
3.1+ |
7.0+ |
||||||||
Remote DebuggerAbility to attach a remote debugger, such as Web Inspector |
weinre (inspector) |
weinre (inspector) |
weinre (inspector) | 7.0+ |
DragonFly |
weinre (nspector) |
||||||
Feature | Safari on iOS | Android Browser | BlackBerry Browser | Nokia Browser | Internet Explorer | Opera | Firefox | webOS Browser | ||||
Version tested | iPhone, iPad | Phones (1.0-2.3) | Tablets (3.0+) | Phones | Tablet | Meego - Nokia N9 | Symbian | Windows Phone | Mobile | Mini | Android | |
WebGLKhronos Group API3D Canvas for the web |
2.3 only on Sony Xperia |
2.0 beta |
||||||||||
XMLHttpRequest 2.0W3C APIAJAX 2.0: upload files, progress |
5.0+ |
4.0+ |
||||||||||
Navigation Timing APIW3C APIPerformance events for WPO |
4.0+ |
4.0+ |
7+ |
|||||||||
Notifications APIW3C APIBackground alert notifications |
custom code |
|||||||||||
Network Information APIW3C APIConnection Type: 2G, 3G, 4G, WiFi |
2.2+ |
|||||||||||
File APIW3C APIOpening local files through input type |
4.0+ |
|||||||||||
CORSW3C APICross origin Resource Sharing, for cross domain AJAX request |
4.0+ |
|||||||||||
HTML Media CaptureW3C APITaking pictures, record video and audio from an input file type |
4.0+ |
|||||||||||
IndexedDBW3C APIAgnostic database system (replacement for Web SQL) |