HTML5在Android IOS等移动平台上的兼容性

最近尝试将做的一个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 Cache

W3C API

Offline package installation.

true true
2.1+
true true
6.0+
true true     true   true true

Web storage

W3C API

Persistent and session storage.

true true
2.0+
true true
6.0+
true true   true true   true true

Web SQL storage

W3C API (no active)

Persistent SQLite storage.

true true
2.0+
true true
6.0+
true true     true     true

Geolocation

W3C API

Geolocation & tracking using GPS, cells or Wi-Fi.

true true
2.0+
true true
6.0+
true true   true true   true true

Multimedia

W3C API

Video & Audio Players

true true
2.3+
true true
7.0+
true true   true true   true true

Server-Sent Events

W3C API

EventSource pattern to mantain the connection to the server open

true
4.1+
        true     true   true  

Web Sockets

W3C API

Newbidireccional protocol over HTTP

true
4.2+
    true
6.1+
true       true   true
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 Workers

W3C API

Threading and background process communications

true
5.0+
    true
6.0+
true true     true   true  

Canvas API

W3C API

2D Drawing API

true true true true true true true
Anna+
true true true true true

SVG

W3C Working Group

Scalable Vector Graphics

true true
4.0+
true true true true true true true true true  

Motion Sensors

W3C Standard

Accelerometer, Gyroscope, Magnetometer

true
4.2
true
4.0+
true     true         true
moz (custom)
 

HTML5 Form Virtual Keyboards

W3C Standard

Text Inputs with different keyboards

true     true true true true
Anna+
true true   true  

HTML5 Form New Controls

W3C API

At least: Date, Time, Month, Range

true
5.0+
  true           true   true  

Touch Events

W3C API

touchstart, touchend, touchmove, touchcancel

true true
2.1+
true true
6.1+
true true     true
(android)
  true  
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 Basic

W3C Standard

opacity, backgrounds, text effects, rounded corners

true true true true
6.0
true true true
Anna+
true true true
partial
true true

CSS 3 Transforms 2D

W3C Standard

rotate, translate, scale, skew, matrix

true true
2.0+
true true
6.0
true true true
Anna+
true true true
partial
true true

CSS 3 Transforms 3D

W3C Standard

scale3d, translate3d. Perspective, Backface

true true
4.0+
true   true true            

CSS 3 Transitions

W3C Standard

Animations between two states

true true
2.0+
true true
6.0
true true true
Anna+
  true   true true

CSS 3 Animations

W3C Standard

Animations with keyframes

true true
2.0+
true true
6.0
true true true
Anna+
      true true

Viewport definition

W3C API

Meta tag support.

true true
supports target-densityDpi
true true true true true
Anna+
true true
supports css & meta
  true true

Position: fixed support

W3C Standard

Ability to mantain an element fixed in the viewport while scrolling / zooming

true
5.0+
true
2.2+ & non scalable viewport
true
3.1+
true
7.0+
true true            

Remote Debugger

Ability to attach a remote debugger, such as Web Inspector

true
weinre (inspector)
true
weinre (inspector)
trueweinre (inspector) true
7.0+ 
true       true
DragonFly
    true
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  

WebGL

Khronos Group API

3D Canvas for the web

  true
2.3 only on Sony Xperia
    true
2.0 beta
          true  

XMLHttpRequest 2.0

W3C API

AJAX 2.0: upload files, progress

true
5.0+
true
4.0+
true     true            

Navigation Timing API

W3C API

Performance events for WPO

  true
4.0+
true
4.0+
        true     true
7+
 

Notifications API

W3C API

Background alert notifications

                    true
custom code
 

Network Information API

W3C API

Connection Type: 2G, 3G, 4G, WiFi

  true
2.2+
true                  

File API

W3C API

Opening local files through input type

  true
4.0+
true                  

CORS

W3C API

Cross origin Resource Sharing, for cross domain AJAX request

true true
4.0+
true     true            

HTML Media Capture

W3C API

Taking pictures, record video and audio from an input file type

  true
4.0+
true                  

IndexedDB

W3C API

Agnostic database system (replacement for Web SQL)

                    true  

你可能感兴趣的:(ios,android,html5,Nokia,平台,notifications)