javascript - 淘宝和京东在iphone上通过桌面快捷方式打开首页好像不是在浏览器打开,是如何实现的
PHP中文网
PHP中文网 2017-04-10 14:28:24
[JavaScript讨论组]

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

PHP中文网
PHP中文网

认证0级讲师

全部回复(1)
巴扎黑

以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.

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号