智能手机主屏幕书签按钮
我正在创建一个小型网站,主要用于现代智能手机。
是否有一种标准方法可以制作一个可以在手机主屏幕上制作书签的按钮?与 iOS Safari 的“添加到主屏幕”选项类似,但支持范围更广(iPhone、HTC、黑莓等)。
另外:apple-touch-favicon 是否也与其他智能手机一起使用,或者是否也有一个标准?
非常感谢您的回答!
I'm creating a small web site that will mostly be used with modern smart phones.
Is there a standard way to make a button that would make a bookmark on the phone home screen? Similar to iOS Safari "Add to Home Screen" -option, but with a greater support (iPhone, HTC, Blackberry etc.)
Also: Is the apple-touch-favicon also used with other smart phones or is there a standard for that too?
Thanks alot for your answers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,Android 2.x 中不支持通过 Web 浏览器地址访问主屏幕(可能在 4.x 中)。您只能通过从主屏幕菜单添加快捷方式来将书签添加到主屏幕。
不确定图标,但考虑到“apple-touch-”命名约定,我会猜测并说不。
No, there is no support for web browser address to home screen in Android 2.x (maybe in 4.x). You can only add a bookmark to the home screen by adding a shorcut from the home screen menu.
Not sure about the favicon, but given the "apple-touch-" naming convention I'd take a guess and say no.
实际上有一个 .js 脚本可以在这两个平台上实现这一点。
看哪: 书签气泡
它可能有点挑剔,但经过微调,它可以作为一种“引导”用户根据平台(ios、android)为页面添加书签的方法。据我所知,这大约是您最接近的一键书签到主屏幕“按钮”
至少 Android 的另一种选择是创建一个实际的应用程序。利用 android intents 它可以全屏打开移动网站(或任何你想要的真的吗)。这是一个有点过程,但根据您的情况可能值得。您只需将用户引导至“移动应用”版本的 Play 商店即可。
There is actually a .js script that somewhat achieves this on both platforms.
behold: bookmark bubble
It may be a bit finicky but fine tuned it can work as a means to "direct" the user to bookmark the page based on the platform (ios, android). As near as I can tell, this is about the closest you are going to get to a one click bookmark to home screen "button"
One other alternative for android at least, is to create an actual application. Utilizing android intents it can open up the mobile site in fullscreen (or whatever you wish really). This is a bit of a process but may be worth it depending on your situation. You can just direct users to the play store for the "mobile app" version.