2

html5 是否适用于 android 2.2 及更高版本?我尝试了一个youtube 链接,但它正在使用 js。他们只是添加<!DOCTYPE html>了所有然后说是支持html5?我尝试将其他html5编码如下

<form action="/newaccount" method=post
  oninput="up2.setCustomValidity(up2.value != up.value ? 'Passwords do not match.' : '')">
<p>
<label for="username">E-mail address:</label>
<input id="username" type=email required name=un>
</p>
<label for="password1">Password:</label>
<input id="password1" type=password required name=up>
<p>
<label for="password2">Confirm password:</label>
<input id="password2" type=password name=up2>
</p>
<input type=submit value="Create account" />
</form>

html5 必须使用 jquery 还是 javascript 然后才能在我的 android 设备 2.3.6 上工作?现在是 html5 完全支持 android 4.0 吗?

4

4 回答 4

3

您想探索电话差距。它是一个独立于平台的开发环境,可将使用 HTML5、CSS 和 JS 编写的应用程序转换为可发布的 Android、iPhone、Windows 等应用程序。

http://phonegap.com/

于 2012-07-19T09:52:09.277 回答
3

是的 html5 正在运行 android 2.2 及更高版本。
android浏览器支持html5

您的模拟器可能不支持某些功能。
尝试在设备中运行您的应用程序。

于 2012-07-19T10:16:51.210 回答
1

目前没有浏览器完全支持 HTML5,但有些支持大部分规范。Android 2.2 的内置浏览器确实支持 type=email 规范。

于 2012-07-19T09:54:32.857 回答
1

<!DOCTYPE html>仅在制作网页时适用。它将基本的 html 转换为 html5。

Android 2.2 上的 Html5 仅支持:

  1. <!DOCTYPE html>
  2. 2D 上下文
  3. 文本
  4. 元素的选择 - 嵌入自定义不可见数据
  5. 动态标记插入
  6. Base64编码和解码
  7. 跨文档消息传递
  8. 一种字段类型-输入类型=文本

但是,它不支持:

html5 tokenizer, html tree building, svg in text/html, mathML in text/html,video element, subtitle support, poster image support, MPEG-4, Audio, MP3

几乎所有字段类型:

input type=search
input type=tel
input type=url
input type=email
input type=datetime
input type=date
input type=month
input type=week
input type=time
input type=datetime-local
input type=range
input type=color
input type=checkbox
input type=image
textarea
select
datalist
keygen
output
progress
field validation
form validation
APIs
Spellcheck attribute
Session history
Geolocation
Device Orientation
FileReader API
Local Storage
Access the camera
Full Screen 

但谷歌表示它在三明治冰淇淋中表现不错

于 2012-07-19T10:14:32.103 回答