大网数据广告活动
Web 标准与前端开发

short_name

· 52CE 我爱测

The `short_name` manifest member is used to specify a short name for your web application, which may be used when the full `name` is too long for the available space.

The short_name manifest member is used to specify a short name for your web application, which may be used when the full name is too long for the available space.

Syntax

/* Short names of web apps */
"short_name": "TaskPlanner"
"short_name": "RecipePantry"

Values

  • short_name
    • : A string that specifies a short version of your web app's name.

Description

Browsers may use short_name in place of name when there is insufficient space to display the full name, such as on a device's home screen, in the application switcher, or in other space-constrained contexts.

Keep the following points in mind when selecting a short name for your web app:

  • It should be a concise version of your app's name.
  • While aiming for brevity, it should still be recognizable and meaningful.
  • Consider how it will appear in space-constrained contexts.
  • Follow the same guidelines for cultural sensitivity and trademark as for name.

Examples

Adding a short name for your web app

Consider a web app that helps users plan and log their hiking adventures. The name has been defined as Trail Navigator. A short_name can be added to the manifest as follows:

{
  "name": "Trail Navigator",
  "short_name": "TrailNav"
}

The app's shorter name TrailNav is concise and is suitable for limited space contexts. It maintains a connection to the app's full name and is easy to remember.

Specifications

Browser compatibility

See also

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。