首页 > 淘宝和京东在iphone上通过桌面快捷方式打开首页好像不是在浏览器打开,是如何实现的

淘宝和京东在iphone上通过桌面快捷方式打开首页好像不是在浏览器打开,是如何实现的

京东和淘宝在iphone通过桌面快捷图标打开页面我们传统的方法(<link rel="apple-touch-icon-precomposed" href="http://a.tbcdn.cn/mw/s/hi/tbtouch/images/touch-icon.png" >);它那个是没在浏览器运行的,是不是用了html5来实现的么?


以webapp模式运行的,参见Safari HTML Reference

apple-mobile-web-app-capable

Sets whether a web application runs in full-screen mode.

Syntax

<meta name="apple-mobile-web-app-capable" content="yes">

Discussion

If content is set to yes, the web application runs in full-screen mode; otherwise, it does not. The default behavior is to use Safari to display web content.

You can determine whether a webpage is displayed in full-screen mode using the window.navigator.standalone read-only Boolean JavaScript property.

Availability

Available in iOS 2.1 and later.

Support Level

Apple extension.

【热门文章】
【热门文章】