设置默认的iOS网页剪辑图标标题? [英] Set default iOS web clip icon title?

查看:93
本文介绍了设置默认的iOS网页剪辑图标标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在iOS设备上使用Safari并点击添加到主屏幕时,是否可以设置默认标题或覆盖生成的标题?

Is it possible to set a default title or override the generated title for when a user is in Safari on their iOS device and clicks "Add to Home Screen"?

我想这个标题是从HTML的< title> Example.com< / title> 标签中提取的。但是,我想仅针对具有特定标题的iOS设备。

I imagine this title is being pulled from the HTML's <title>Example.com</title> tag. However, I would like to target just iOS devices with a specific title.

事实上,iOS引入的标题甚至不是我网站的完整标题;但是,当我手动操作时,iOS显然会接受更多字符输入。

A matter of fact, the title that iOS pulls in is not even the full title of my site; however, iOS clearly accepts more character input when I do it manually.

推荐答案

在iOS 6中,现在可以手动设置使用以下未记录的 meta 标记的默认网络剪辑标题:

In iOS 6 it is now possible to manually set a default web clip title using the following undocumented meta tag:

<meta name="apple-mobile-web-app-title" content="[your title]" />

感谢Max Firtman在针对HTML5开发者的iPhone 5和iOS 6

Thanks to Max Firtman for covering this in his article on the iPhone 5 and iOS 6 for HTML5 developers.

这篇关于设置默认的iOS网页剪辑图标标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆