我可以开始在我的智能手机应用程序中使用 HTML 5 吗?
大多数智能手机使用已实现 HTML 5(或至少部分实现)的现代浏览器引擎。我应该开始在我的 Web 应用程序中使用 HTML 5 吗?在哪里可以找到最流行设备(iPhone、Android 等)使用的浏览器引擎列表?我的应用程序不必在较旧的桌面浏览器上运行。
Most smartphones use modern browser engines that have implementing HTML 5 (or at least partially). Should I start using HTML 5 for my web application ? Where can I find a list of browser engines used by most popular devices (iPhone,Android,etc.) ? My application doesn't have to work on older desktop browsers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
根据您的网页的商业/关键程度,答案会有所不同。
如果它适用于所有智能手机至关重要,请使用 HTML4,以便将其升级到 HTML5。
如果最好能在大多数智能手机上运行,HTML5 就可以了。即使不支持,页面也会呈现 - 它只是看起来不像您想要的那样。我使用的是 HTML5,并添加了一些内容来帮助旧版浏览器正确呈现它。
我对 HTML 5 进行了浏览器测试(使用旧版浏览器的帮助程序),结果如下:
http://www.stevefenton.co.uk/Content/Blog/Date/200907/Blog/HTML-5-Browser-Test/
Depending on how commercial/critical your web page is, the answer differs.
If it is CRITICAL that it works on ALL smart-phones, use HTML4, with a view to upgrading it to HTML5.
If it is preferable that it works on most smart-phones HTML5 will be fine. Even where it is not supported, the page will render - it just won't look like you intend. I'm using HTML5 with a couple of additions that help older browsers to render it correctly.
I did a browser test of HTML 5 (with the helpers for older browsers) with the following results:
http://www.stevefenton.co.uk/Content/Blog/Date/200907/Blog/HTML-5-Browser-Test/
根据这篇文章(iPhone 开发者放弃应用程序HTML5 的模型?),看来开始使用 HTML 5 是可行的。
According to this post (iPhone developers abandoning app model for HTML5?), it seems that starting to use HTML 5 is feasible.
除非您只关心 iPhone,否则“大多数”智能手机都不能很好地支持 5。
如果你真的想要在智能手机上有良好的兼容性,你最好还是选择4。
Unless you only cares iphone, 5 is not well supported for "most" smartphones.
If you really want good compatibility on smartphones, you'd better keep with 4.
维基百科移动浏览器页面目前有一个不错的表格。
在“最受欢迎的设备”问题上,如果您获得了有关应用程序的目标受众所使用的手机的任何信息,那么这将比一般受欢迎程度更有价值。
话虽如此,我认为总的来说,iPhone 的销量数据明显领先于其他所有人,而且 iPhone 对 HTML5 的支持也很好。我会继续使用 HTML5,因为我认为其他智能手机要么会赶上他们的 HTML5 支持,要么会消失。
Android 几乎是唯一一款销量可观的智能手机,对吧?我认为 Google 热衷于 HTML5。
The Wikipedia mobile browsers page has a decent table at the moment.
On the “most popular devices” issue, if you’ve got any information about phones used by your app’s intended audience, that’ll be more valuable than general popularity.
Having said that, I think in general the iPhone’s sales figures are significantly ahead of everyone else, and the iPhone has great HTML5 support. I’d go ahead with HTML5, as I think the other smartphones will either catch up with their HTML5 support, or disappear.
Android’s pretty much the only other smartphone with significant sales, right? I think Google’s keen on HTML5.