设置“主屏幕”移动Safari的图标名称 [英] Setting "Home Screen" icon name for mobile Safari

查看:145
本文介绍了设置“主屏幕”移动Safari的图标名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,当将网站加入书签作为图标时(通过从Safari的+菜单中选择添加到主屏幕),图标名称默认为到页面的< title> ,截断为12个字符。

By default, when "bookmarking" a website as an icon (by choosing to Add to Home Screen from within Safari's "+" menu), the icon name defaults to the page's <title>, truncated to 12 characters.

与<$ c的方式大致相同$ c> apple-touch-icon 允许您指定自己的图标化页面表示,网页是否有指定默认图标名称的方式,而不是<标题>

In much the same way that apple-touch-icon lets you specify your own iconified representation of the page, is there a way for the webpage to specify a default icon name other than its <title>?

推荐答案

在iOS 6中,这是通过元标记解决的:

In iOS 6 this is solved with a meta tag:

<meta name="apple-mobile-web-app-title" content="Short name">

cwap 正确地评论说:它现在是官方文件。以下是为网络应用设置 meta 标签的所有信息: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

As cwap rightly commented: It's now official documentation. Here's all the info on setting meta tags for web apps: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

这篇关于设置“主屏幕”移动Safari的图标名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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