Html JQuery Mobile 添加主屏幕选项?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6162070/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 08:48:51  来源:igfitidea点击:

JQuery Mobile Add the Home Screen Options?

htmlcssmobilecross-browserjquery-mobile

提问by Satch3000

I know that there is no way of auto adding the JQuery Mobile App to the Home Screen.

我知道无法将 JQuery 移动应用程序自动添加到主屏幕。

I've read that the best way is to detect if the app is in full screen and if not give instructions. How would I do this?

我读过最好的方法是检测应用程序是否全屏显示,如果没有给出说明。我该怎么做?

What are the cross browser options available and are there any tutorials / samples anywhere?

有哪些可用的跨浏览器选项,是否有任何教程/示例?

Can anyone put some light on this please?

任何人都可以对此有所了解吗?

Thanks.

谢谢。

回答by Phill Pafford

You can not 'Auto Add' as webapp to your home screen, the only option is thing: http://www.tuaw.com/2008/12/19/iphone-101-add-mobile-websites-to-home-screen/

您不能“自动添加”作为 webapp 到您的主屏幕,唯一的选择是:http: //www.tuaw.com/2008/12/19/iphone-101-add-mobile-websites-to-home-屏幕/

Note: Auto Adding a webapp to your homescreen would be a really bad thing, just think any webpage you went to could auto add itself to your iphone. NO THANKS!!!

注意:自动将 web 应用程序添加到您的主屏幕将是一件非常糟糕的事情,想想您访问的任何网页都可以自动将其添加到您的 iphone 中。不,谢谢!!!

UPDATE:

更新:

I think this is what you're looking for: http://code.google.com/p/mobile-bookmark-bubble/I have made a Feature Request (under new widgets) for this: https://github.com/jquery/jquery-mobile/wiki/Feature-Requests

我认为这就是您要查找的内容:http: //code.google.com/p/mobile-bookmark-bubble/我为此提出了一个功能请求(在新小部件下):https: //github.com /jquery/jquery-mobile/wiki/Feature-Requests

Related Links:

相关链接:

Maybe Notification Popup? - How to show the "add to home screen" popup window and notifications like the buildin home?- Is there a JQuery plugin for the iPhone that will notify the user to "Bookmark" their app?

也许通知弹出窗口?-如何显示“添加到主屏幕”弹出窗口和通知,如内置主页?-是否有适用于 iPhone 的 JQuery 插件会通知用户为他们的应用程序添加“书签”?

回答by Bjorn Thor Jonsson

Here's another script targeted at iOS browsers that seems similar to mobile-bookmark-bubble:
http://cubiq.org/add-to-home-screen

这是另一个针对 iOS 浏览器的脚本,类似于 mobile-bookmark-bubble:http:
//cubiq.org/add-to-home-screen

Some work has been done here to add support for Android: http://code.google.com/p/mobile-bookmark-bubble/issues/detail?id=12http://code.google.com/p/mobile-bookmark-bubble/issues/detail?id=17

这里已经做了一些工作来添加对 Android 的支持:http: //code.google.com/p/mobile-bookmark-bubble/issues/detail? id=12 http://code.google.com/p/mobile -bookmark-bubble/issues/detail?id=17